[Libreoffice-commits] .: sw/source

Julien Nabet serval2412 at kemper.freedesktop.org
Mon Jun 13 13:08:29 PDT 2011


 sw/source/core/doc/tblrwcl.cxx     |    4 ++--
 sw/source/core/layout/flycnt.cxx   |    4 ++--
 sw/source/core/layout/virtoutp.hxx |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit b23b2b290a7e5e59f2a9cdbbe8101e9d47fa166b
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Jun 13 22:07:59 2011 +0200

    Some cppcheck cleaning (functions can be const)

diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx
index c19f8cb..d5a586e 100644
--- a/sw/source/core/doc/tblrwcl.cxx
+++ b/sw/source/core/doc/tblrwcl.cxx
@@ -101,9 +101,9 @@ struct _CpyTabFrm
 
     _CpyTabFrm& operator=( const _CpyTabFrm& );
 
-    sal_Bool operator==( const _CpyTabFrm& rCpyTabFrm )
+    sal_Bool operator==( const _CpyTabFrm& rCpyTabFrm ) const
         { return  (sal_uLong)Value.nSize == (sal_uLong)rCpyTabFrm.Value.nSize; }
-    sal_Bool operator<( const _CpyTabFrm& rCpyTabFrm )
+    sal_Bool operator<( const _CpyTabFrm& rCpyTabFrm ) const
         { return  (sal_uLong)Value.nSize < (sal_uLong)rCpyTabFrm.Value.nSize; }
 };
 
diff --git a/sw/source/core/layout/flycnt.cxx b/sw/source/core/layout/flycnt.cxx
index 0d2f988..7da7e34 100644
--- a/sw/source/core/layout/flycnt.cxx
+++ b/sw/source/core/layout/flycnt.cxx
@@ -584,10 +584,10 @@ public:
     SwDistance() { nMain = nSub = 0; }
     SwDistance& operator=( const SwDistance &rTwo )
         { nMain = rTwo.nMain; nSub = rTwo.nSub; return *this; }
-    sal_Bool operator<( const SwDistance& rTwo )
+    sal_Bool operator<( const SwDistance& rTwo ) const
         { return nMain < rTwo.nMain || ( nMain == rTwo.nMain && nSub &&
           rTwo.nSub && nSub < rTwo.nSub ); }
-    sal_Bool operator<=( const SwDistance& rTwo )
+    sal_Bool operator<=( const SwDistance& rTwo ) const
         { return nMain < rTwo.nMain || ( nMain == rTwo.nMain && ( !nSub ||
           !rTwo.nSub || nSub <= rTwo.nSub ) ); }
 };
diff --git a/sw/source/core/layout/virtoutp.hxx b/sw/source/core/layout/virtoutp.hxx
index f7df293..03e0ddc 100644
--- a/sw/source/core/layout/virtoutp.hxx
+++ b/sw/source/core/layout/virtoutp.hxx
@@ -65,7 +65,7 @@ public:
     void SetOrgRect( SwRect &rRect ) { aOrgRect = rRect; }
     const SwRect& GetOrgRect() const { return aOrgRect; }
 
-    sal_Bool IsFlushable() { return 0 != pOut; }
+    sal_Bool IsFlushable() const { return 0 != pOut; }
     void _Flush();
     void Flush() { if( pOut ) _Flush(); }
 };


More information about the Libreoffice-commits mailing list