[Libreoffice-commits] .: 3 commits - sw/source
Caolán McNamara
caolan at kemper.freedesktop.org
Thu Nov 25 08:07:02 PST 2010
sw/source/core/unocore/unoobj2.cxx | 2 +-
sw/source/core/unocore/unoportenum.cxx | 2 +-
sw/source/ui/vba/vbalisthelper.hxx | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
New commits:
commit e84f5d6f20585567ca70752ce5188cb10b518acf
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Nov 25 11:37:37 2010 +0000
cppcheck: methods can be const
diff --git a/sw/source/core/unocore/unoportenum.cxx b/sw/source/core/unocore/unoportenum.cxx
index db17de9..ae41808 100644
--- a/sw/source/core/unocore/unoportenum.cxx
+++ b/sw/source/core/unocore/unoportenum.cxx
@@ -112,7 +112,7 @@ namespace
struct BookmarkCompareStruct
{
bool operator () ( const SwXBookmarkPortion_ImplSharedPtr &r1,
- const SwXBookmarkPortion_ImplSharedPtr &r2 )
+ const SwXBookmarkPortion_ImplSharedPtr &r2 ) const
{
// #i16896# for bookmark portions at the same position, the start should
// always precede the end. Hence compare positions, and use bookmark type
commit c529a9c74db16784e583136e69ea01c051ed46a1
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Nov 25 11:35:41 2010 +0000
cppcheck: methods can be const
diff --git a/sw/source/core/unocore/unoobj2.cxx b/sw/source/core/unocore/unoobj2.cxx
index fcaf6e3..2278bb5 100644
--- a/sw/source/core/unocore/unoobj2.cxx
+++ b/sw/source/core/unocore/unoobj2.cxx
@@ -187,7 +187,7 @@ void DeepCopyPaM(SwPaM const & rSource, SwPaM & rTarget)
struct FrameDependSortListLess
{
bool operator() (FrameDependSortListEntry const& r1,
- FrameDependSortListEntry const& r2)
+ FrameDependSortListEntry const& r2) const
{
return (r1.nIndex < r2.nIndex)
|| ((r1.nIndex == r2.nIndex) && (r1.nOrder < r2.nOrder));
commit 2aa8060ab8d47f25a5875ef178a926e6034d0378
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Nov 25 10:59:59 2010 +0000
cppcheck: methods can be const
diff --git a/sw/source/ui/vba/vbalisthelper.hxx b/sw/source/ui/vba/vbalisthelper.hxx
index 6d60420..1fd590d 100644
--- a/sw/source/ui/vba/vbalisthelper.hxx
+++ b/sw/source/ui/vba/vbalisthelper.hxx
@@ -65,7 +65,7 @@ private:
public:
SwVbaListHelper( const css::uno::Reference< css::text::XTextDocument >& xTextDoc, sal_Int32 nGalleryType, sal_Int32 nTemplateType ) throw( css::uno::RuntimeException );
- sal_Int32 getGalleryType() { return mnGalleryType; }
+ sal_Int32 getGalleryType() const { return mnGalleryType; }
css::uno::Reference< css::container::XIndexReplace > getNumberingRules() { return mxNumberingRules; }
css::uno::Any getPropertyValueWithNameAndLevel( sal_Int32 nLevel, const rtl::OUString& sName ) throw( css::uno::RuntimeException );
void setPropertyValueWithNameAndLevel( sal_Int32 nLevel, const rtl::OUString& sName, const css::uno::Any& aValue ) throw( css::uno::RuntimeException );
More information about the Libreoffice-commits
mailing list