Code clean-up
This commit is contained in:
parent
2e3e188026
commit
d7ac16dd8d
@ -38,7 +38,7 @@ inline wxString wxXmlEscapeText(_In_ const wxString& str)
|
|||||||
wxString escaped;
|
wxString escaped;
|
||||||
escaped.reserve(str.length());
|
escaped.reserve(str.length());
|
||||||
|
|
||||||
for (wxString::const_iterator i = str.begin(); i != str.end(); ++i) {
|
for (auto i = str.begin(); i != str.end(); ++i) {
|
||||||
const wxChar c = *i;
|
const wxChar c = *i;
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case wxS('<'):
|
case wxS('<'):
|
||||||
@ -74,7 +74,7 @@ inline wxString wxXmlEscapeAttr(_In_ const wxString& str)
|
|||||||
wxString escaped;
|
wxString escaped;
|
||||||
escaped.reserve(str.length());
|
escaped.reserve(str.length());
|
||||||
|
|
||||||
for (wxString::const_iterator i = str.begin(); i != str.end(); ++i) {
|
for (auto i = str.begin(); i != str.end(); ++i) {
|
||||||
const wxChar c = *i;
|
const wxChar c = *i;
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case wxS('<'):
|
case wxS('<'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user