diff options
author | Armin Le Grand (allotropia) <armin.le.grand.extern@allotropia.de> | 2023-11-21 19:57:25 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-11-22 07:41:15 +0100 |
commit | f7df46c917533d3ce3528d52f49629fe9f51e67b (patch) | |
tree | ccfc83a77e383df0da575065eda6c6c8159cddc0 /svl/source/items/itempool.cxx | |
parent | 7d357628d6e8ce3f9e3c3a567ada21f02bce8d42 (diff) |
Work with what we have in ArrayImpl: pointers
That allows to not create a local copy on the heap before
being able to check if a change is really necessary
Also added mfOrientation to Cell::operator==, it was missing. Maybe
with C++20 we should more use the default generated op== (or op<=>)
that may turn out to be more safe. For class Cell at least all members
(and sub-members of Style) are simple and simple comparable.
Change-Id: Idea2ef2abe68c4bb14aa776a8393ba5da92abd5c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159798
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl/source/items/itempool.cxx')
-rw-r--r-- | svl/source/items/itempool.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx index f119bc85304f..c2c37c1200fb 100644 --- a/svl/source/items/itempool.cxx +++ b/svl/source/items/itempool.cxx @@ -40,8 +40,6 @@ static size_t nRemainingDirectlyPooledSfxPoolItemCount(0); size_t getAllDirectlyPooledSfxPoolItemCount() { return nAllDirectlyPooledSfxPoolItemCount; } size_t getRemainingDirectlyPooledSfxPoolItemCount() { return nRemainingDirectlyPooledSfxPoolItemCount; } #endif -// NOTE: Only needed for one Item in SC, see note in itemset.cxx -static bool g_bItemClassicMode(getenv("ITEM_CLASSIC_MODE")); // WhichIDs that need to set _bNeedsPoolRegistration in SfxItemInfo // to true to allow a register of all items of that type/with that WhichID |