[Libreoffice-commits] .: sc/inc sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Tue Apr 17 12:01:43 PDT 2012
sc/inc/printopt.hxx | 4 ++--
sc/inc/viewopti.hxx | 4 ++--
sc/source/core/tool/printopt.cxx | 4 ++--
sc/source/core/tool/viewopti.cxx | 2 +-
4 files changed, 7 insertions(+), 7 deletions(-)
New commits:
commit 3ef53adf7eb7ea68fe4ba5b8f4fee8a7c6014756
Author: Albert Thuswaldner <albert.thuswaldner at gmail.com>
Date: Sun Apr 15 17:15:20 2012 +0200
Have operators of ScViewOptions and ScPrintOptions return bool instead of int
diff --git a/sc/inc/printopt.hxx b/sc/inc/printopt.hxx
index 5883e7c..8e32b7c 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 0c763ce..b82f566 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 095e594..215989b 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 7c40d22..b20c57d 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
More information about the Libreoffice-commits
mailing list