Replace another StrPrintf usage, add ReplaceIllegalFileNameChars unit tests

This commit is contained in:
Mark Roszko
2025-12-04 23:10:13 -05:00
parent c53dd1fc1a
commit 36641ca491
7 changed files with 38 additions and 25 deletions
+1 -1
View File
@@ -286,7 +286,7 @@ KICOMMON_API bool IsFullFileNameValid( const wxString& aFullFilename );
* @param aReplaceChar (if not 0) is the replacement char.
* @return true if any characters have been replaced in \a aName.
*/
KICOMMON_API bool ReplaceIllegalFileNameChars( std::string* aName, int aReplaceChar = 0 );
KICOMMON_API bool ReplaceIllegalFileNameChars( std::string& aName, int aReplaceChar = 0 );
KICOMMON_API bool ReplaceIllegalFileNameChars( wxString& aName, int aReplaceChar = 0 );