diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-26 21:24:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-26 21:48:59 +0000 |
commit | 0df18bf440cab140f0facfcd3bf8f321678b31a4 (patch) | |
tree | 4d38ecd315de7f22dcb0a552eb14b7c31fc95e7e | |
parent | 571148a30ed93a6d2b7bbcac57283195e4f05f42 (diff) |
cppcheck: these methods can be constfeature/bootstrap-build
-rw-r--r-- | sw/source/core/doc/doctxm.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx index bcd6546f0b..2fe5aa88bc 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); } }; |