diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-27 21:56:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-28 17:17:32 +0100 |
commit | 5ec7c4eecf955090cc3bdd7a283aa5a291d12385 (patch) | |
tree | 817d8626dad27e0259522fe4b8436b19f12411f2 /chart2/source/controller/inc/uiobject.hxx | |
parent | ccc2e526d107a353469b5aad99e94544c07a10ee (diff) |
fix comparison of UIObject's inside UITests
using == to compare them doesnt work, because we return
a new one with every call to getTopFocusWindow and similar.
So add a equals() method to the UNO interface to do the comparison.
Change-Id: Ie909fe9b4e84fe07f4ca87bbebf65b56d3da8f78
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165436
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/controller/inc/uiobject.hxx')
-rw-r--r-- | chart2/source/controller/inc/uiobject.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chart2/source/controller/inc/uiobject.hxx b/chart2/source/controller/inc/uiobject.hxx index 917ba322bf5e..6de63f5d3fdf 100644 --- a/chart2/source/controller/inc/uiobject.hxx +++ b/chart2/source/controller/inc/uiobject.hxx @@ -32,6 +32,8 @@ public: virtual OUString get_type() const override; + virtual bool equals(const UIObject& rOther) const override; + private: OUString maCID; |