diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-07-30 10:21:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-07-30 12:47:50 +0100 |
commit | aec9bb52ab50a26fe635ff1036f7fe6882ca74dd (patch) | |
tree | 789ace97352d0c39c847218d4d8a3806fe9dd2a7 /sw | |
parent | b8d3a13abe531e2c6ef2451eba8247477b453354 (diff) |
const up SwSortElement::operator*
Change-Id: Iabb2b686776de56957423598ef8f39e1cc4cd986
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docsort.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/inc/docsort.hxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/doc/docsort.cxx b/sw/source/core/doc/docsort.cxx index 729ef6e0abc3..a76425da66c5 100644 --- a/sw/source/core/doc/docsort.cxx +++ b/sw/source/core/doc/docsort.cxx @@ -136,7 +136,7 @@ double SwSortElement::StrToDouble( const String& rStr ) const /*-------------------------------------------------------------------- Description: Comparison operators --------------------------------------------------------------------*/ -sal_Bool SwSortElement::operator==(const SwSortElement& ) +sal_Bool SwSortElement::operator==(const SwSortElement& ) const { return sal_False; } @@ -144,7 +144,7 @@ sal_Bool SwSortElement::operator==(const SwSortElement& ) /*-------------------------------------------------------------------- Description: Less-than operator for sorting --------------------------------------------------------------------*/ -sal_Bool SwSortElement::operator<(const SwSortElement& rCmp) +sal_Bool SwSortElement::operator<(const SwSortElement& rCmp) const { // The actual comparison diff --git a/sw/source/core/inc/docsort.hxx b/sw/source/core/inc/docsort.hxx index 03ab7381df22..21623284d309 100644 --- a/sw/source/core/inc/docsort.hxx +++ b/sw/source/core/inc/docsort.hxx @@ -86,8 +86,8 @@ struct SwSortElement virtual String GetKey(sal_uInt16 nKey ) const = 0; virtual double GetValue(sal_uInt16 nKey ) const; - sal_Bool operator==(const SwSortElement& ); - sal_Bool operator<(const SwSortElement& ); + sal_Bool operator==(const SwSortElement& ) const; + sal_Bool operator<(const SwSortElement& ) const; double StrToDouble(const String& rStr) const; }; |