summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-16 12:00:57 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-16 12:16:00 +0000
commite59df5cb6ca0002894a287a84f1b33f6a28997b6 (patch)
tree06b133a97e3918759a65a20582f486bfae31a281 /forms
parent13b846d2a3bf11889663ea0d63a0f63cd16401cf (diff)
cppcheck: can be const
Diffstat (limited to 'forms')
-rw-r--r--forms/source/xforms/computedexpression.cxx2
-rw-r--r--forms/source/xforms/computedexpression.hxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/xforms/computedexpression.cxx b/forms/source/xforms/computedexpression.cxx
index cb8cb9e99ab7..4739924b8d53 100644
--- a/forms/source/xforms/computedexpression.cxx
+++ b/forms/source/xforms/computedexpression.cxx
@@ -184,7 +184,7 @@ void ComputedExpression::clear()
mxResult.clear();
}
-Reference<XXPathObject> ComputedExpression::getXPath()
+Reference<XXPathObject> ComputedExpression::getXPath() const
{
return mxResult;
}
diff --git a/forms/source/xforms/computedexpression.hxx b/forms/source/xforms/computedexpression.hxx
index 316571d906ba..528bda5e457f 100644
--- a/forms/source/xforms/computedexpression.hxx
+++ b/forms/source/xforms/computedexpression.hxx
@@ -128,7 +128,7 @@ public:
// get the result of this expression as string/bool/...
// (Results will be based on the last call of evaluate(..). The caller
// must call evaluate to ensure current results.)
- com::sun::star::uno::Reference<com::sun::star::xml::xpath::XXPathObject> getXPath();
+ com::sun::star::uno::Reference<com::sun::star::xml::xpath::XXPathObject> getXPath() const;
bool getBool( bool bDefault = false ) const;
rtl::OUString getString( const rtl::OUString& rDefault = rtl::OUString() ) const;