Use wxEmptyString instead of wxT( "" )

Also fixes places where ternaries did autopromotion instead of returning
an empty wxString
This commit is contained in:
Seth Hillbrand
2022-02-09 10:33:52 -08:00
parent 54f91a0221
commit 861589d837
65 changed files with 162 additions and 159 deletions
+2 -2
View File
@@ -149,7 +149,7 @@ wxString EscapeString( const wxString& aSource, ESCAPE_CONTEXT aContext )
if( c == '/' )
converted += wxT( "{slash}" );
else if( c == '\n' || c == '\r' )
converted += wxT( "" ); // drop
converted += wxEmptyString; // drop
else
converted += c;
}
@@ -170,7 +170,7 @@ wxString EscapeString( const wxString& aSource, ESCAPE_CONTEXT aContext )
else if( c == '\"' )
converted += wxT( "{dblquote}" );
else if( c == '\n' || c == '\r' )
converted += wxT( "" ); // drop
converted += wxEmptyString; // drop
else
converted += c;
}