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 /svl | |
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 'svl')
-rw-r--r-- | svl/source/svdde/ddeimp.hxx | 2 | ||||
-rw-r--r-- | svl/source/svdde/ddestrg.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/svdde/ddeimp.hxx b/svl/source/svdde/ddeimp.hxx index 4c6a5ce872d8..060711bbf32e 100644 --- a/svl/source/svdde/ddeimp.hxx +++ b/svl/source/svdde/ddeimp.hxx @@ -66,7 +66,7 @@ public: DdeString( DWORD, const OUString& ); ~DdeString(); - bool operator==( HSZ ); + bool operator==( HSZ ) const; HSZ getHSZ(); const OUString & toOUString() const { return m_aString; } }; diff --git a/svl/source/svdde/ddestrg.cxx b/svl/source/svdde/ddestrg.cxx index 6789dc1e172f..6ddade45b9c6 100644 --- a/svl/source/svdde/ddestrg.cxx +++ b/svl/source/svdde/ddestrg.cxx @@ -34,7 +34,7 @@ DdeString::~DdeString() DdeFreeStringHandle( hInst, hString ); } -bool DdeString::operator==( HSZ h ) +bool DdeString::operator==( HSZ h ) const { return( !DdeCmpStringHandles( hString, h ) ); } |