From d7ac16dd8dea0bc0d1e9618093f57e57538c1503 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 3 Oct 2016 14:48:59 +0200 Subject: [PATCH] Code clean-up --- include/wxex/xml.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wxex/xml.h b/include/wxex/xml.h index 7322e21..d638412 100644 --- a/include/wxex/xml.h +++ b/include/wxex/xml.h @@ -38,7 +38,7 @@ inline wxString wxXmlEscapeText(_In_ const wxString& str) wxString escaped; 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; switch (c) { case wxS('<'): @@ -74,7 +74,7 @@ inline wxString wxXmlEscapeAttr(_In_ const wxString& str) wxString escaped; 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; switch (c) { case wxS('<'):