Initial unit test plus fixes
[shibboleth/cpp-xmltooling.git] / xmltooling / QName.cpp
index b47588e..2c95801 100644 (file)
@@ -123,14 +123,14 @@ bool xmltooling::operator<(const QName& op1, const QName& op2)
 \r
 string QName::toString() const\r
 {\r
-    if (!getLocalPart())\r
+    if (!hasLocalPart())\r
         return "";\r
     auto_ptr_char local(getLocalPart());\r
-    if (getPrefix()) {\r
+    if (hasPrefix()) {\r
         auto_ptr_char pre(getPrefix());\r
         return string(pre.get()) + ':' + local.get(); \r
     }\r
-    else if (getNamespaceURI()) {\r
+    else if (hasNamespaceURI()) {\r
         auto_ptr_char ns(getNamespaceURI());\r
         return string("{") + ns.get() + '}' + local.get(); \r
     }\r