From: cantor Date: Wed, 7 Nov 2007 19:31:12 +0000 (+0000) Subject: Add const to operator methods. X-Git-Tag: 1.4.1~411 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fxmltooling.git;a=commitdiff_plain;h=859e55499dfddde0f53892215beda81dfa7271b0 Add const to operator methods. git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@415 de75baf8-a10c-0410-a50a-987c0e22f00f --- diff --git a/xmltooling/util/Predicates.h b/xmltooling/util/Predicates.h index 2453a62..4f92439 100644 --- a/xmltooling/util/Predicates.h +++ b/xmltooling/util/Predicates.h @@ -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; }