don't use int as return type for operator==
This commit is contained in:
parent
a64b6e4d0a
commit
78e5a64c64
1 changed files with 4 additions and 4 deletions
|
@ -96,8 +96,8 @@ public:
|
||||||
void ResetDocOptions();
|
void ResetDocOptions();
|
||||||
|
|
||||||
inline const ScDocOptions& operator=( const ScDocOptions& rOpt );
|
inline const ScDocOptions& operator=( const ScDocOptions& rOpt );
|
||||||
inline int operator==( const ScDocOptions& rOpt ) const;
|
inline bool operator==( const ScDocOptions& rOpt ) const;
|
||||||
inline int operator!=( const ScDocOptions& rOpt ) const;
|
inline bool operator!=( const ScDocOptions& rOpt ) const;
|
||||||
|
|
||||||
sal_uInt16 GetStdPrecision() const { return nPrecStandardFormat; }
|
sal_uInt16 GetStdPrecision() const { return nPrecStandardFormat; }
|
||||||
void SetStdPrecision( sal_uInt16 n ) { nPrecStandardFormat = n; }
|
void SetStdPrecision( sal_uInt16 n ) { nPrecStandardFormat = n; }
|
||||||
|
@ -161,7 +161,7 @@ inline const ScDocOptions& ScDocOptions::operator=( const ScDocOptions& rCpy )
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline int ScDocOptions::operator==( const ScDocOptions& rOpt ) const
|
inline bool ScDocOptions::operator==( const ScDocOptions& rOpt ) const
|
||||||
{
|
{
|
||||||
return (
|
return (
|
||||||
rOpt.bIsIgnoreCase == bIsIgnoreCase
|
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));
|
return !(operator==(rOpt));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue