diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-03-12 10:47:39 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-03-12 11:05:36 +0100 |
commit | 1be9938157ab91ab16b938eaf2062651f09a0d69 (patch) | |
tree | b529535cacf313cd8e20f9a5333c4e10de278678 /include | |
parent | 8e173a965d5684372e3fe0ee3d3599032bcb86c2 (diff) |
comparison operators should be const
Change-Id: Ifa76e004128223460945d58d1c59c4e23db0f108
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90370
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/o3tl/enumrange.hxx | 2 | ||||
-rw-r--r-- | include/svx/autoformathelper.hxx | 2 | ||||
-rw-r--r-- | include/vcl/EnumContext.hxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/o3tl/enumrange.hxx b/include/o3tl/enumrange.hxx index 560a158cecb6..60f069c9f507 100644 --- a/include/o3tl/enumrange.hxx +++ b/include/o3tl/enumrange.hxx @@ -58,7 +58,7 @@ public: ++m_value; } - bool operator!=( Iterator rhs ) + bool operator!=( Iterator rhs ) const { return m_value != rhs.m_value; } diff --git a/include/svx/autoformathelper.hxx b/include/svx/autoformathelper.hxx index c731ff70b5e0..2d292b1def11 100644 --- a/include/svx/autoformathelper.hxx +++ b/include/svx/autoformathelper.hxx @@ -142,7 +142,7 @@ protected: ~AutoFormatBase(); /// Comparing based of boxes backgrounds. - bool operator==(const AutoFormatBase& rRight); + bool operator==(const AutoFormatBase& rRight) const; public: // The get-methods. diff --git a/include/vcl/EnumContext.hxx b/include/vcl/EnumContext.hxx index 1c68e1b6f014..3609640fe17f 100644 --- a/include/vcl/EnumContext.hxx +++ b/include/vcl/EnumContext.hxx @@ -127,8 +127,8 @@ public: Application GetApplication_DI() const; - bool operator == (const EnumContext& rOther); - bool operator != (const EnumContext& rOther); + bool operator == (const EnumContext& rOther) const; + bool operator != (const EnumContext& rOther) const; /** When two contexts are matched against each other, then application or context name may have the wildcard value 'any'. |