[Libreoffice-commits] .: 2 commits - sfx2/source vbahelper/source
Caolán McNamara
caolan at kemper.freedesktop.org
Wed Mar 9 07:38:44 PST 2011
sfx2/source/doc/doctemplates.cxx | 2 +-
vbahelper/source/msforms/vbacontrol.hxx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 8040f107ea52c5b3e3f7d64758a93f846b7fa62b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Mar 9 09:11:48 2011 +0000
cppcheck: this method can be const
diff --git a/vbahelper/source/msforms/vbacontrol.hxx b/vbahelper/source/msforms/vbacontrol.hxx
index ed7004a..4f2437c 100644
--- a/vbahelper/source/msforms/vbacontrol.hxx
+++ b/vbahelper/source/msforms/vbacontrol.hxx
@@ -75,7 +75,7 @@ public:
void setGeometryHelper( ov::AbstractGeometryAttributes* pHelper );
// sets the name of the associated library ( used for UserForm controls )
void setLibraryAndCodeName( const rtl::OUString& sLibCodeName ) { m_sLibraryAndCodeName = sLibCodeName; }
- rtl::OUString getLibraryAndCodeName() { return m_sLibraryAndCodeName; }
+ rtl::OUString getLibraryAndCodeName() const { return m_sLibraryAndCodeName; }
// XControl
virtual sal_Bool SAL_CALL getEnabled() throw (css::uno::RuntimeException);
commit 63ca6fd9b2bd4e276218011913a2d2e24146c768
Author: Caolán McNamara <caolanm at redhat.com>
Date: Wed Mar 9 09:10:23 2011 +0000
cppcheck: this method can be const
diff --git a/sfx2/source/doc/doctemplates.cxx b/sfx2/source/doc/doctemplates.cxx
index c73d0c5..c4ba333 100644
--- a/sfx2/source/doc/doctemplates.cxx
+++ b/sfx2/source/doc/doctemplates.cxx
@@ -278,7 +278,7 @@ public:
~SfxDocTplService_Impl();
sal_Bool init() { if ( !mbIsInitialized ) init_Impl(); return mbIsInitialized; }
- Content getContent() { return maRootContent; }
+ Content getContent() const { return maRootContent; }
void setLocale( const Locale & rLocale );
Locale getLocale();
More information about the Libreoffice-commits
mailing list