From 859e55499dfddde0f53892215beda81dfa7271b0 Mon Sep 17 00:00:00 2001 From: cantor Date: Wed, 7 Nov 2007 19:31:12 +0000 Subject: [PATCH] Add const to operator methods. git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@415 de75baf8-a10c-0410-a50a-987c0e22f00f --- xmltooling/util/Predicates.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.1.4