[cpp-xmltooling COMMIT] /branches/REL_1/xmltooling/base.h

noreply at shibboleth.net noreply at shibboleth.net
Wed Nov 16 21:34:45 GMT 2011


Author: scantor
Date: Wed Nov 16 21:34:45 2011
New Revision: 924

URL: http://svn.shibboleth.net/view/cpp-xmltooling?rev=924&view=rev
Log:
Add missing namespace qualifiers.

Modified:
    branches/REL_1/xmltooling/base.h

Modified: branches/REL_1/xmltooling/base.h
URL: http://svn.shibboleth.net/view/cpp-xmltooling/branches/REL_1/xmltooling/base.h?rev=924&r1=923&r2=924&view=diff
==============================================================================
--- branches/REL_1/xmltooling/base.h (original)
+++ branches/REL_1/xmltooling/base.h Wed Nov 16 21:34:45 2011
@@ -698,8 +698,8 @@
         } \
         void set##proper(int proper) { \
             char buf##proper[64]; \
-            sprintf(buf##proper,"%d",proper); \
-            auto_ptr_XMLCh wide##proper(buf##proper); \
+            std::sprintf(buf##proper,"%d",proper); \
+            xmltooling::auto_ptr_XMLCh wide##proper(buf##proper); \
             set##proper(wide##proper.get()); \
         }
 
@@ -738,7 +738,7 @@
         } \
         void set##proper(const type* proper) { \
             m_##proper = prepareForAssignment(m_##proper,proper); \
-            XMLString::release(&m_##proper##Prefix); \
+            xercesc::XMLString::release(&m_##proper##Prefix); \
             m_##proper##Prefix = nullptr; \
         }
 
@@ -1019,7 +1019,7 @@
  */
 #define MARSHALL_QNAME_ATTRIB(proper,ucase,namespaceURI) \
     if (m_##proper) { \
-        auto_ptr_XMLCh qstr(m_##proper->toString().c_str()); \
+        xmltooling::auto_ptr_XMLCh qstr(m_##proper->toString().c_str()); \
         domElement->setAttributeNS(namespaceURI, ucase##_ATTRIB_NAME, qstr.get()); \
     }
 
@@ -1113,7 +1113,7 @@
  */
 #define PROC_QNAME_ATTRIB(proper,ucase,namespaceURI) \
     if (xmltooling::XMLHelper::isNodeNamed(attribute, namespaceURI, ucase##_ATTRIB_NAME)) { \
-        auto_ptr<xmltooling::QName> q(XMLHelper::getAttributeValueAsQName(attribute)); \
+        std::auto_ptr<xmltooling::QName> q(xmltooling::XMLHelper::getAttributeValueAsQName(attribute)); \
         set##proper(q.get()); \
         return; \
     }
@@ -1251,7 +1251,7 @@
     XMLTOOLING_DOXYGEN(Sets proper.) \
     void set##proper(int proper) { \
         char buf[64]; \
-        sprintf(buf,"%d",proper); \
+        std::sprintf(buf,"%d",proper); \
         xmltooling::auto_ptr_XMLCh widebuf(buf); \
         setTextContent(widebuf.get()); \
     } \



More information about the commits mailing list