Added a string reserve.

master
Alexander Harkness 2013-10-19 21:30:54 +01:00
parent 5ba998174a
commit 3272b45bc5
1 changed files with 1 additions and 0 deletions

View File

@ -402,6 +402,7 @@ AString cWebAdmin::GetHTMLEscapedString( const AString& a_Input )
// Define a string to write the output to.
AString dst = "";
dst.reserve(a_Input.length());
// Loop over input and substitute HTML characters for their alternatives.
for (size_t i = 0; i < a_Input.length(); i++) {