diff options
author | Albert Thuswaldner <albert.thuswaldner@gmail.com> | 2012-04-15 17:15:20 +0200 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-17 15:02:28 -0400 |
commit | 3ef53adf7eb7ea68fe4ba5b8f4fee8a7c6014756 (patch) | |
tree | 71adae02a73e88186fd5da81a7f802be5da3f3de | |
parent | e1ca72ca9f783a2f956f1445ce82cd3eacffe4a2 (diff) |
Have operators of ScViewOptions and ScPrintOptions return bool instead of int
-rw-r--r-- | sc/inc/printopt.hxx | 4 | ||||
-rw-r--r-- | sc/inc/viewopti.hxx | 4 | ||||
-rw-r--r-- | sc/source/core/tool/printopt.cxx | 4 | ||||
-rw-r--r-- | sc/source/core/tool/viewopti.cxx | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/sc/inc/printopt.hxx b/sc/inc/printopt.hxx index 5883e7ccb18c..8e32b7c0ecc1 100644 --- a/sc/inc/printopt.hxx +++ b/sc/inc/printopt.hxx @@ -52,8 +52,8 @@ public: void SetDefaults(); const ScPrintOptions& operator= ( const ScPrintOptions& rCpy ); - int operator== ( const ScPrintOptions& rOpt ) const; - int operator!= ( const ScPrintOptions& rOpt ) const; + bool operator== ( const ScPrintOptions& rOpt ) const; + bool operator!= ( const ScPrintOptions& rOpt ) const; }; //================================================================== diff --git a/sc/inc/viewopti.hxx b/sc/inc/viewopti.hxx index 0c763cefb697..b82f566d26e8 100644 --- a/sc/inc/viewopti.hxx +++ b/sc/inc/viewopti.hxx @@ -83,8 +83,8 @@ public: void SetDefaults(); const ScGridOptions& operator= ( const ScGridOptions& rCpy ); - int operator== ( const ScGridOptions& rOpt ) const; - int operator!= ( const ScGridOptions& rOpt ) const { return !(operator==(rOpt)); } + bool operator== ( const ScGridOptions& rOpt ) const; + bool operator!= ( const ScGridOptions& rOpt ) const { return !(operator==(rOpt)); } }; //================================================================== diff --git a/sc/source/core/tool/printopt.cxx b/sc/source/core/tool/printopt.cxx index 095e594121d9..215989be17be 100644 --- a/sc/source/core/tool/printopt.cxx +++ b/sc/source/core/tool/printopt.cxx @@ -74,13 +74,13 @@ const ScPrintOptions& ScPrintOptions::operator=( const ScPrintOptions& rCpy ) return *this; } -int ScPrintOptions::operator==( const ScPrintOptions& rOpt ) const +bool ScPrintOptions::operator==( const ScPrintOptions& rOpt ) const { return bSkipEmpty == rOpt.bSkipEmpty && bAllSheets == rOpt.bAllSheets; } -int ScPrintOptions::operator!=( const ScPrintOptions& rOpt ) const +bool ScPrintOptions::operator!=( const ScPrintOptions& rOpt ) const { return !(operator==(rOpt)); } diff --git a/sc/source/core/tool/viewopti.cxx b/sc/source/core/tool/viewopti.cxx index 7c40d2287a20..b20c57d0b8b5 100644 --- a/sc/source/core/tool/viewopti.cxx +++ b/sc/source/core/tool/viewopti.cxx @@ -105,7 +105,7 @@ const ScGridOptions& ScGridOptions::operator=( const ScGridOptions& rCpy ) //------------------------------------------------------------------------ -int ScGridOptions::operator==( const ScGridOptions& rCpy ) const +bool ScGridOptions::operator==( const ScGridOptions& rCpy ) const { return ( nFldDrawX == rCpy.nFldDrawX && nFldDivisionX == rCpy.nFldDivisionX |