Performance optimizations.

(cherry picked from commit 31c6c28882)
This commit is contained in:
Jeff Young
2025-07-08 08:44:21 +01:00
parent 573e36b2d3
commit 0ecd5d86bc
4 changed files with 15 additions and 17 deletions
+1 -3
View File
@@ -569,8 +569,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( "\"" ) },
@@ -596,7 +594,7 @@ wxString UnescapeHTML( const wxString& aString )
size_t len = 0;
wxString result;
wxString str = converted;
wxString str = aString;
while( regex.Matches( str ) )
{