[Libreoffice-commits] .: 2 commits - sw/source
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Nov 26 13:49:59 PST 2010
sw/source/core/doc/doctxm.cxx | 12 ++++++------
sw/source/core/layout/objectformatter.cxx | 2 +-
2 files changed, 7 insertions(+), 7 deletions(-)
New commits:
commit 0df18bf440cab140f0facfcd3bf8f321678b31a4
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Nov 26 21:24:39 2010 +0000
cppcheck: these methods can be const
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index bcd6546..2fe5aa8 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -220,20 +220,20 @@ public:
CompareNodeCntnt( ULONG nNd, xub_StrLen nCnt )
: nNode( nNd ), nCntnt( nCnt ) {}
- int operator==( const CompareNodeCntnt& rCmp )
+ int operator==( const CompareNodeCntnt& rCmp ) const
{ return nNode == rCmp.nNode && nCntnt == rCmp.nCntnt; }
- int operator!=( const CompareNodeCntnt& rCmp )
+ int operator!=( const CompareNodeCntnt& rCmp ) const
{ return nNode != rCmp.nNode || nCntnt != rCmp.nCntnt; }
- int operator< ( const CompareNodeCntnt& rCmp )
+ int operator< ( const CompareNodeCntnt& rCmp ) const
{ return nNode < rCmp.nNode ||
( nNode == rCmp.nNode && nCntnt < rCmp.nCntnt); }
- int operator<=( const CompareNodeCntnt& rCmp )
+ int operator<=( const CompareNodeCntnt& rCmp ) const
{ return nNode < rCmp.nNode ||
( nNode == rCmp.nNode && nCntnt <= rCmp.nCntnt); }
- int operator> ( const CompareNodeCntnt& rCmp )
+ int operator> ( const CompareNodeCntnt& rCmp ) const
{ return nNode > rCmp.nNode ||
( nNode == rCmp.nNode && nCntnt > rCmp.nCntnt); }
- int operator>=( const CompareNodeCntnt& rCmp )
+ int operator>=( const CompareNodeCntnt& rCmp ) const
{ return nNode > rCmp.nNode ||
( nNode == rCmp.nNode && nCntnt >= rCmp.nCntnt); }
};
commit 571148a30ed93a6d2b7bbcac57283195e4f05f42
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Nov 26 21:21:15 2010 +0000
cppcheck: this method can be const
diff --git a/sw/source/core/layout/objectformatter.cxx b/sw/source/core/layout/objectformatter.cxx
index a393127..70efc16 100644
--- a/sw/source/core/layout/objectformatter.cxx
+++ b/sw/source/core/layout/objectformatter.cxx
@@ -118,7 +118,7 @@ class SwPageNumAndTypeOfAnchors
return bRetObj;
}
- inline sal_uInt32 GetPageNum( sal_uInt32 _nIndex )
+ inline sal_uInt32 GetPageNum( sal_uInt32 _nIndex ) const
{
sal_uInt32 nRetPgNum = 0L;
More information about the Libreoffice-commits
mailing list