Add const to operator methods.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Wed, 7 Nov 2007 19:31:12 +0000 (19:31 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Wed, 7 Nov 2007 19:31:12 +0000 (19:31 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@415 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling/util/Predicates.h

index 2453a62..4f92439 100644 (file)
@@ -48,7 +48,7 @@ namespace xmltooling {
          * 
          * @param xmlObject the object to examine
          */
-        bool operator()(const XMLObject* xmlObject) {
+        bool operator()(const XMLObject* xmlObject) const {
             return xmlObject ? (xmlObject->getElementQName() == m_q) : false;
         }
         
@@ -75,7 +75,7 @@ namespace xmltooling {
          * 
          * @param xmlObject the object to examine
          */
-        bool operator()(const XMLObject* xmlObject) {
+        bool operator()(const XMLObject* xmlObject) const {
             const QName* xsitype = xmlObject ? xmlObject->getSchemaType() : NULL;
             return xsitype ? (*xsitype == m_q) : false;
         }