From b025069fbe714992865d3b765a2d3c823f7ebd9c Mon Sep 17 00:00:00 2001 From: halx99 Date: Thu, 23 Dec 2021 16:11:40 +0800 Subject: [PATCH] Fix for old compilers --- src/pugixml.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pugixml.cpp b/src/pugixml.cpp index 7e5148a..2db585f 100644 --- a/src/pugixml.cpp +++ b/src/pugixml.cpp @@ -2620,7 +2620,7 @@ PUGI__NS_BEGIN } else if (s[0] == '-' && s[1] == '-' && PUGI__ENDSWITH(s[2], '>')) // comment ends here { - auto end = g.flush(s); + char_t* end = g.flush(s); *end = '\0'; len = static_cast(end - begin); @@ -2652,7 +2652,7 @@ PUGI__NS_BEGIN } else if (s[0] == ']' && s[1] == ']' && PUGI__ENDSWITH(s[2], '>')) // CDATA ends here { - auto end = g.flush(s); + char_t* end = g.flush(s); *end = '\0'; len = static_cast(end - begin); @@ -2811,7 +2811,7 @@ PUGI__NS_BEGIN if (*s == end_quote) { - auto end = g.flush(s); + char_t* end = g.flush(s); *end = '\0'; len = static_cast(end - begin); @@ -2851,7 +2851,7 @@ PUGI__NS_BEGIN if (*s == end_quote) { - auto end = g.flush(s); + char_t* end = g.flush(s); *end = '\0'; len = static_cast(end - begin); @@ -2887,7 +2887,7 @@ PUGI__NS_BEGIN if (*s == end_quote) { - auto end = g.flush(s); + char_t* end = g.flush(s); *end = '\0'; len = static_cast(end - begin);