[Libreoffice-commits] .: sc/inc
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Thu Jul 7 20:36:55 PDT 2011
sc/inc/docoptio.hxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 9752b71d6dd02240b5be49bfd4b6bbc7f16c6736
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Fri Jul 8 05:35:18 2011 +0200
don't use int as return type for operator==
diff --git a/sc/inc/docoptio.hxx b/sc/inc/docoptio.hxx
index de6b970..8ebcc36 100644
--- a/sc/inc/docoptio.hxx
+++ b/sc/inc/docoptio.hxx
@@ -96,8 +96,8 @@ public:
void ResetDocOptions();
inline const ScDocOptions& operator=( const ScDocOptions& rOpt );
- inline int operator==( const ScDocOptions& rOpt ) const;
- inline int operator!=( const ScDocOptions& rOpt ) const;
+ inline bool operator==( const ScDocOptions& rOpt ) const;
+ inline bool operator!=( const ScDocOptions& rOpt ) const;
sal_uInt16 GetStdPrecision() const { return nPrecStandardFormat; }
void SetStdPrecision( sal_uInt16 n ) { nPrecStandardFormat = n; }
@@ -161,7 +161,7 @@ inline const ScDocOptions& ScDocOptions::operator=( const ScDocOptions& rCpy )
return *this;
}
-inline int ScDocOptions::operator==( const ScDocOptions& rOpt ) const
+inline bool ScDocOptions::operator==( const ScDocOptions& rOpt ) const
{
return (
rOpt.bIsIgnoreCase == bIsIgnoreCase
@@ -189,7 +189,7 @@ inline int ScDocOptions::operator==( const ScDocOptions& rOpt ) const
);
}
-inline int ScDocOptions::operator!=( const ScDocOptions& rOpt ) const
+inline bool ScDocOptions::operator!=( const ScDocOptions& rOpt ) const
{
return !(operator==(rOpt));
}
More information about the Libreoffice-commits
mailing list