From 01ada020de561394f563a4fa7c9559e435ef2659 Mon Sep 17 00:00:00 2001 From: Jez Higgins Date: Wed, 15 Apr 2020 20:29:55 +0100 Subject: [PATCH] Use string_adaptor::empty instead of trying to call .empty on the string object --- include/DOM/io/Stream.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/DOM/io/Stream.hpp b/include/DOM/io/Stream.hpp index 39369f25..ace6cf90 100644 --- a/include/DOM/io/Stream.hpp +++ b/include/DOM/io/Stream.hpp @@ -173,7 +173,7 @@ int prefix_mapper(std::basic_ostream& stream, { //DOM::Node attr = attrs.getNamedItem(*a); const DOM::Node attr = attrNodes[a]; - if(attr.getNodeName().empty() || + if(string_adaptorT::empty(attr.getNodeName()) || isXmlns(attr.getNodeName()) || isXmlns(attr.getPrefix())) continue;