diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 12:47:17 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-10 17:11:51 +0100 |
commit | 02f72c32cf5e33e28d2b2d63d887c8a429ec2a45 (patch) | |
tree | 1ea6ec5c51eb243ec4d424acc9ca4302174eea2d /include/vcl | |
parent | c83f425af90b26d62771fa2a93d93fc24adc22a0 (diff) |
operator ==, != should return bool
Change-Id: I73cb672175f49535a3d0e248d9ed970bb5e3be4a
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/txtattr.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/vcl/txtattr.hxx b/include/vcl/txtattr.hxx index 6701be4c6dc5..e2bf0ec9c1f7 100644 --- a/include/vcl/txtattr.hxx +++ b/include/vcl/txtattr.hxx @@ -54,8 +54,8 @@ public: virtual void SetFont( Font& rFont ) const = 0; virtual TextAttrib* Clone() const = 0; - virtual int operator==( const TextAttrib& rAttr ) const = 0; - int operator!=( const TextAttrib& rAttr ) const + virtual bool operator==( const TextAttrib& rAttr ) const = 0; + bool operator!=( const TextAttrib& rAttr ) const { return !(*this == rAttr ); } }; @@ -75,7 +75,7 @@ public: virtual void SetFont( Font& rFont ) const; virtual TextAttrib* Clone() const; - virtual int operator==( const TextAttrib& rAttr ) const; + virtual bool operator==( const TextAttrib& rAttr ) const; }; @@ -91,7 +91,7 @@ public: virtual void SetFont( Font& rFont ) const; virtual TextAttrib* Clone() const; - virtual int operator==( const TextAttrib& rAttr ) const; + virtual bool operator==( const TextAttrib& rAttr ) const; inline FontWeight getFontWeight() const { return meWeight; } }; @@ -119,7 +119,7 @@ public: virtual void SetFont( Font& rFont ) const; virtual TextAttrib* Clone() const; - virtual int operator==( const TextAttrib& rAttr ) const; + virtual bool operator==( const TextAttrib& rAttr ) const; }; class VCL_DLLPUBLIC TextAttribProtect : public TextAttrib @@ -131,7 +131,7 @@ public: virtual void SetFont( Font& rFont ) const; virtual TextAttrib* Clone() const; - virtual int operator==( const TextAttrib& rAttr ) const; + virtual bool operator==( const TextAttrib& rAttr ) const; }; |