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/address.hxx | |
parent | 0c9d002ecdd410b8b5be1fc91f4b84c7cbe5f5bc (diff) |
bool improvements
Change-Id: I27609462f2daba6b2289aff7a6a96686c961f3ce
Diffstat (limited to 'sc/inc/address.hxx')
-rw-r--r-- | sc/inc/address.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx index f764e083e626..7e9724580e61 100644 --- a/sc/inc/address.hxx +++ b/sc/inc/address.hxx @@ -627,8 +627,8 @@ public: inline ScRangePair& operator= ( const ScRangePair& r ); const ScRange& GetRange( sal_uInt16 n ) const { return aRange[n]; } ScRange& GetRange( sal_uInt16 n ) { return aRange[n]; } - inline int operator==( const ScRangePair& ) const; - inline int operator!=( const ScRangePair& ) const; + inline bool operator==( const ScRangePair& ) const; + inline bool operator!=( const ScRangePair& ) const; }; inline ScRangePair& ScRangePair::operator= ( const ScRangePair& r ) @@ -638,12 +638,12 @@ inline ScRangePair& ScRangePair::operator= ( const ScRangePair& r ) return *this; } -inline int ScRangePair::operator==( const ScRangePair& r ) const +inline bool ScRangePair::operator==( const ScRangePair& r ) const { return ( (aRange[0] == r.aRange[0]) && (aRange[1] == r.aRange[1]) ); } -inline int ScRangePair::operator!=( const ScRangePair& r ) const +inline bool ScRangePair::operator!=( const ScRangePair& r ) const { return !operator==( r ); } @@ -693,8 +693,8 @@ public: inline SCROW Row() const { return aAdr.Row(); } inline SCTAB Tab() const { return aAdr.Tab(); } - inline int operator == ( const ScRefAddress& r ) const; - inline int operator != ( const ScRefAddress& r ) const + inline bool operator == ( const ScRefAddress& r ) const; + inline bool operator != ( const ScRefAddress& r ) const { return !(operator==(r)); } OUString GetRefString( ScDocument* pDoc, SCTAB nActTab, @@ -728,7 +728,7 @@ inline void ScRefAddress::Set( SCCOL nNewCol, SCROW nNewRow, SCTAB nNewTab, bRelTab = bNewRelTab; } -inline int ScRefAddress::operator==( const ScRefAddress& r ) const +inline bool ScRefAddress::operator==( const ScRefAddress& r ) const { return aAdr == r.aAdr && bRelCol == r.bRelCol && bRelRow == r.bRelRow && bRelTab == r.bRelTab; |