From e59df5cb6ca0002894a287a84f1b33f6a28997b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 16 Dec 2010 12:00:57 +0000 Subject: [PATCH] cppcheck: can be const --- forms/source/xforms/computedexpression.cxx | 2 +- forms/source/xforms/computedexpression.hxx | 2 +- 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 ComputedExpression::getXPath() +Reference 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 getXPath(); + com::sun::star::uno::Reference getXPath() const; bool getBool( bool bDefault = false ) const; rtl::OUString getString( const rtl::OUString& rDefault = rtl::OUString() ) const;