[Libreoffice-commits] .: forms/source

Caolán McNamara caolan at kemper.freedesktop.org
Thu Dec 16 12:24:33 PST 2010


 forms/source/xforms/computedexpression.cxx |    2 +-
 forms/source/xforms/computedexpression.hxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5c1a762777df596c9f2cc3f042dd876b0d0d059f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Dec 16 12:00:57 2010 +0000

    cppcheck: can be const

diff --git a/forms/source/xforms/computedexpression.cxx b/forms/source/xforms/computedexpression.cxx
index ad9421a..353741c 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 8d1ef01..04c584c 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;
 


More information about the Libreoffice-commits mailing list