Use string_adaptor::empty instead of trying to call .empty on the string object

This commit is contained in:
Jez Higgins 2020-04-15 20:29:55 +01:00
parent 7c0df3fbb5
commit 01ada020de

View file

@ -173,7 +173,7 @@ int prefix_mapper(std::basic_ostream<charT, traitsT>& stream,
{
//DOM::Node<stringT, string_adaptorT> attr = attrs.getNamedItem(*a);
const DOM::Node<stringT, string_adaptorT> attr = attrNodes[a];
if(attr.getNodeName().empty() ||
if(string_adaptorT::empty(attr.getNodeName()) ||
isXmlns<stringT, string_adaptorT, charT>(attr.getNodeName()) ||
isXmlns<stringT, string_adaptorT, charT>(attr.getPrefix()))
continue;