From 430ef4696201f34414d6277c434a1f29af26cce9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 25 Nov 2010 11:10:48 +0000 Subject: cppcheck: methods can be const --- slideshow/source/engine/tools.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slideshow/source/engine/tools.cxx b/slideshow/source/engine/tools.cxx index 85b2e0323aab..f49226761faa 100644 --- a/slideshow/source/engine/tools.cxx +++ b/slideshow/source/engine/tools.cxx @@ -77,7 +77,7 @@ namespace slideshow { } - bool operator()( const beans::NamedValue& rValue ) + bool operator()( const beans::NamedValue& rValue ) const { return rValue.Name == mrSearchString; } @@ -94,7 +94,7 @@ namespace slideshow { } - bool operator()( const beans::NamedValue& rValue ) + bool operator()( const beans::NamedValue& rValue ) const { return rValue.Name == mrKey.Name && rValue.Value == mrKey.Value; } -- cgit v1.2.3