X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltoolingtest%2FNonVisibleNamespaceTest.h;h=e50fdf3dc963790af00b6cd421fa6f785ccdf2c2;hb=a0d768778a8f5f539b909baf5b115e70ea765f0f;hp=0d4624e141f93b51fd8841a9a69155198c4e72c3;hpb=3f34c742109a7773703fbf9beab9d34722586c05;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltoolingtest/NonVisibleNamespaceTest.h b/xmltoolingtest/NonVisibleNamespaceTest.h index 0d4624e..e50fdf3 100644 --- a/xmltoolingtest/NonVisibleNamespaceTest.h +++ b/xmltoolingtest/NonVisibleNamespaceTest.h @@ -38,13 +38,13 @@ public: void testNamespacesAfterBuilding() { xmltooling::QName qtype(SimpleXMLObject::NAMESPACE,SimpleXMLObject::TYPE_NAME,SimpleXMLObject::NAMESPACE_PREFIX); const XMLObjectBuilder* b = XMLObjectBuilder::getBuilder(qtype); - TS_ASSERT(b!=NULL); + TS_ASSERT(b!=nullptr); auto_ptr sxObject( - dynamic_cast(b->buildObject(SimpleXMLObject::NAMESPACE, SimpleXMLObject::LOCAL_NAME, NULL, &qtype)) + dynamic_cast(b->buildObject(SimpleXMLObject::NAMESPACE, SimpleXMLObject::LOCAL_NAME, nullptr, &qtype)) ); - TS_ASSERT(sxObject.get()!=NULL); + TS_ASSERT(sxObject.get()!=nullptr); static_cast(sxObject.get())->setAttribute( - xmltooling::QName(NULL, "attr1"), xmltooling::QName("http://www.example.org/testObjects/ext", "Value1", "test2") + xmltooling::QName(nullptr, "attr1"), xmltooling::QName("http://www.example.org/testObjects/ext", "Value1", "test2") ); static const XMLCh TEST2_PREFIX[] = { chLatin_t, chLatin_e, chLatin_s, chLatin_t, chDigit_2, chNull }; @@ -74,15 +74,15 @@ public: string path=data_path + "SimpleXMLObjectWithNonVisible.xml"; ifstream fs(path.c_str()); DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs); - TS_ASSERT(doc!=NULL); + TS_ASSERT(doc!=nullptr); const XMLObjectBuilder* b = XMLObjectBuilder::getBuilder(doc->getDocumentElement()); - TS_ASSERT(b!=NULL); + TS_ASSERT(b!=nullptr); auto_ptr sxObject( dynamic_cast(b->buildFromDocument(doc)) ); - TS_ASSERT(sxObject.get()!=NULL); + TS_ASSERT(sxObject.get()!=nullptr); const set& namespaces = sxObject->getNamespaces(); bool cond1=false, cond2=false, cond3=false;