Performance optimizations.
This commit is contained in:
@@ -590,8 +590,6 @@ wxString EscapeHTML( const wxString& aString )
|
||||
|
||||
wxString UnescapeHTML( const wxString& aString )
|
||||
{
|
||||
wxString converted = aString;
|
||||
|
||||
// clang-format off
|
||||
static const std::map<wxString, wxString> c_replacements = {
|
||||
{ wxS( "quot" ), wxS( "\"" ) },
|
||||
@@ -617,7 +615,7 @@ wxString UnescapeHTML( const wxString& aString )
|
||||
size_t len = 0;
|
||||
|
||||
wxString result;
|
||||
wxString str = converted;
|
||||
wxString str = aString;
|
||||
|
||||
while( regex.Matches( str ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user