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 /dbaccess | |
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 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/querydesign/QTableConnection.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/querydesign/QTableConnection.hxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/querydesign/QTableConnection.cxx b/dbaccess/source/ui/querydesign/QTableConnection.cxx index 3642eed0a279..15a232683599 100644 --- a/dbaccess/source/ui/querydesign/QTableConnection.cxx +++ b/dbaccess/source/ui/querydesign/QTableConnection.cxx @@ -47,7 +47,7 @@ OQueryTableConnection& OQueryTableConnection::operator=(const OQueryTableConnect return *this; } -bool OQueryTableConnection::operator==(const OQueryTableConnection& rCompare) +bool OQueryTableConnection::operator==(const OQueryTableConnection& rCompare) const { OSL_ENSURE(GetData() && rCompare.GetData(), "OQueryTableConnection::operator== : one of the two participants has no data!"); diff --git a/dbaccess/source/ui/querydesign/QTableConnection.hxx b/dbaccess/source/ui/querydesign/QTableConnection.hxx index 13ff5c48a7d4..b15a26102bb5 100644 --- a/dbaccess/source/ui/querydesign/QTableConnection.hxx +++ b/dbaccess/source/ui/querydesign/QTableConnection.hxx @@ -34,7 +34,7 @@ namespace dbaui OQueryTableConnection(const OQueryTableConnection& rConn); OQueryTableConnection& operator=(const OQueryTableConnection& rConn); - bool operator==(const OQueryTableConnection& rCompare); + bool operator==(const OQueryTableConnection& rCompare) const; OUString const & GetAliasName(EConnectionSide nWhich) const { return static_cast<OQueryTableConnectionData*>(GetData().get())->GetAliasName(nWhich); } |