summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-11-22 11:29:30 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-11-22 18:52:42 +0100
commit7a82ea5c79adee70eddf74ac53347544766a91b0 (patch)
tree27cd6c8dc4b9003e04134484c5b9fe7c7e47b450 /svl
parent52ff16771ac160d27fd7beb78a4cfba22ad84f06 (diff)
Fix presumed typo
...introduced in 6cb400f41df0dd108cdb4b4d3ec6656844814147 "store the SfxItemSet inside SfxSetItem by value". It appears to make more sense here to check that an SfxItemSet is not an SfxAllItemSet, than to check that an SfxSetItem is not an SfxAllItemSet. Change-Id: I292c2a88910db9852cf8ba7c61999c5f281ed14a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143119 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/items/sitem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svl/source/items/sitem.cxx b/svl/source/items/sitem.cxx
index db738a2e4b37..a34b9ebff532 100644
--- a/svl/source/items/sitem.cxx
+++ b/svl/source/items/sitem.cxx
@@ -44,7 +44,7 @@ SfxSetItem::SfxSetItem( const SfxSetItem& rCopy, SfxItemPool *pPool ) :
SfxPoolItem(rCopy),
maSet(rCopy.maSet.CloneAsValue(true, pPool))
{
- assert(!dynamic_cast<const SfxAllItemSet*>(&rCopy) && "cannot handle SfxAllItemSet here");
+ assert(!dynamic_cast<const SfxAllItemSet*>(&rCopy.maSet) && "cannot handle SfxAllItemSet here");
}