summaryrefslogtreecommitdiff
path: root/include/svx/xit.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-01-02 20:35:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-01-03 08:53:17 +0100
commit3140d30ba56b95536e9f92ef3074579524791fe5 (patch)
tree47f57f036133ad06b4fff5ce63c842c40af0e4ef /include/svx/xit.hxx
parentf4e8c28e465d103a7ac4bc711e3b23ad3cae9996 (diff)
tighten up asserting in SfxPoolItem::operator==
...subclasses, so we always call the SfxPoolItem::operatar== which will ensure that we are always comparing two objects that belong to the same class. And fix the fallout in SvxUnoNameItemTable. Change-Id: I5ec7fedaa914a328897b54c016ad13e505a15937 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108599 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx/xit.hxx')
-rw-r--r--include/svx/xit.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/svx/xit.hxx b/include/svx/xit.hxx
index 90c19c2f0854..1333a4ef1066 100644
--- a/include/svx/xit.hxx
+++ b/include/svx/xit.hxx
@@ -52,6 +52,7 @@ public:
OUString const & GetName() const { return GetValue(); }
void SetName(const OUString& rName) { SetValue(rName); }
bool IsIndex() const { return (nPalIndex >= 0); }
+ sal_Int32 GetPalIndex() const { return nPalIndex; }
/** this static checks if the given NameOrIndex item has a unique name for its value.
The returned String is a unique name for an item with this value in both given pools.