Performance optimizations.

This commit is contained in:
Jeff Young
2025-06-06 18:25:20 +01:00
parent aa892efc17
commit 31c6c28882
4 changed files with 15 additions and 17 deletions
+1 -3
View File
@@ -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 ) )
{