diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-16 12:00:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-16 12:16:00 +0000 |
commit | 5c1a762777df596c9f2cc3f042dd876b0d0d059f (patch) | |
tree | 85286a9fceb6b37a400489a17a3bd36c7465286c | |
parent | c873a850ea9c5c3ecde17af6a728e91a4f5fc86d (diff) |
cppcheck: can be const
-rw-r--r-- | forms/source/xforms/computedexpression.cxx | 2 | ||||
-rw-r--r-- | 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 ad9421ab4..353741cf3 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 8d1ef01ab..04c584ca8 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; |