diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-14 21:21:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-14 21:28:09 +0100 |
commit | 8b28c064fa7863b365cbb7fc920bc3ac3067dd27 (patch) | |
tree | 21340b6aefa72a2de48bc5f1c0aa52ba72b636e2 /sc/inc/bigrange.hxx | |
parent | 0c9d002ecdd410b8b5be1fc91f4b84c7cbe5f5bc (diff) |
bool improvements
Change-Id: I27609462f2daba6b2289aff7a6a96686c961f3ce
Diffstat (limited to 'sc/inc/bigrange.hxx')
-rw-r--r-- | sc/inc/bigrange.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/inc/bigrange.hxx b/sc/inc/bigrange.hxx index 5abb2b09ec6b..8db2b3460f8b 100644 --- a/sc/inc/bigrange.hxx +++ b/sc/inc/bigrange.hxx @@ -66,9 +66,9 @@ public: { nCol = r.nCol; nRow = r.nRow; nTab = r.nTab; return *this; } ScBigAddress& operator=( const ScAddress& r ) { nCol = r.Col(); nRow = r.Row(); nTab = r.Tab(); return *this; } - int operator==( const ScBigAddress& r ) const + bool operator==( const ScBigAddress& r ) const { return nCol == r.nCol && nRow == r.nRow && nTab == r.nTab; } - int operator!=( const ScBigAddress& r ) const + bool operator!=( const ScBigAddress& r ) const { return !operator==( r ); } friend inline SvStream& operator<< ( SvStream& rStream, const ScBigAddress& rAdr ); @@ -191,9 +191,9 @@ public: ScBigRange& operator=( const ScBigRange& r ) { aStart = r.aStart; aEnd = r.aEnd; return *this; } - int operator==( const ScBigRange& r ) const + bool operator==( const ScBigRange& r ) const { return (aStart == r.aStart) && (aEnd == r.aEnd); } - int operator!=( const ScBigRange& r ) const + bool operator!=( const ScBigRange& r ) const { return !operator==( r ); } friend inline SvStream& operator<< ( SvStream& rStream, const ScBigRange& rRange ); |