diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-07-08 15:19:57 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-07-09 08:04:11 +0200 |
commit | 726ac1d0c6c32a27646117788428907cc3b57278 (patch) | |
tree | 21255e4cd3a3b7b3aa6474c56dbdc7536e62a88f /sw | |
parent | fcad7309358bc66dd37f37b64d30be841bd61832 (diff) |
checkForUniqueItem should take a reference parameter
Change-Id: Ibd9638f9716c4ce8db7ee5e652dc2f207617e7de
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170162
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/docfly.cxx | 14 | ||||
-rw-r--r-- | sw/source/uibase/shells/textsh1.cxx | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/core/doc/docfly.cxx b/sw/source/core/doc/docfly.cxx index 52d9d601dc90..c6e3ebe3ea83 100644 --- a/sw/source/core/doc/docfly.cxx +++ b/sw/source/core/doc/docfly.cxx @@ -515,37 +515,37 @@ void SwDoc::CheckForUniqueItemForLineFillNameOrIndex(SfxItemSet& rSet) { case XATTR_FILLBITMAP: { - pResult = pItem->StaticWhichCast(XATTR_FILLBITMAP).checkForUniqueItem(pDrawModel); + pResult = pItem->StaticWhichCast(XATTR_FILLBITMAP).checkForUniqueItem(*pDrawModel); break; } case XATTR_LINEDASH: { - pResult = pItem->StaticWhichCast(XATTR_LINEDASH).checkForUniqueItem(pDrawModel); + pResult = pItem->StaticWhichCast(XATTR_LINEDASH).checkForUniqueItem(*pDrawModel); break; } case XATTR_LINESTART: { - pResult = pItem->StaticWhichCast(XATTR_LINESTART).checkForUniqueItem(pDrawModel); + pResult = pItem->StaticWhichCast(XATTR_LINESTART).checkForUniqueItem(*pDrawModel); break; } case XATTR_LINEEND: { - pResult = pItem->StaticWhichCast(XATTR_LINEEND).checkForUniqueItem(pDrawModel); + pResult = pItem->StaticWhichCast(XATTR_LINEEND).checkForUniqueItem(*pDrawModel); break; } case XATTR_FILLGRADIENT: { - pResult = pItem->StaticWhichCast(XATTR_FILLGRADIENT).checkForUniqueItem(pDrawModel); + pResult = pItem->StaticWhichCast(XATTR_FILLGRADIENT).checkForUniqueItem(*pDrawModel); break; } case XATTR_FILLFLOATTRANSPARENCE: { - pResult = pItem->StaticWhichCast(XATTR_FILLFLOATTRANSPARENCE).checkForUniqueItem(pDrawModel); + pResult = pItem->StaticWhichCast(XATTR_FILLFLOATTRANSPARENCE).checkForUniqueItem(*pDrawModel); break; } case XATTR_FILLHATCH: { - pResult = pItem->StaticWhichCast(XATTR_FILLHATCH).checkForUniqueItem(pDrawModel); + pResult = pItem->StaticWhichCast(XATTR_FILLHATCH).checkForUniqueItem(*pDrawModel); break; } } diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index 5bcf240026b6..c8ae3dded2c2 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -1666,7 +1666,7 @@ void SwTextShell::Execute(SfxRequest &rReq) // MigrateItemSet guarantees unique gradient names SfxItemSetFixed<XATTR_FILLGRADIENT, XATTR_FILLGRADIENT> aMigrateSet(rWrtSh.GetView().GetPool()); aMigrateSet.Put(XFillGradientItem(u"gradient"_ustr, pTempGradItem->GetGradientValue())); - SdrModel::MigrateItemSet(&aMigrateSet, pSet, pDrawModel); + SdrModel::MigrateItemSet(&aMigrateSet, pSet, *pDrawModel); } bSet = pFS && pFS->GetValue() == drawing::FillStyle_HATCH; @@ -1676,7 +1676,7 @@ void SwTextShell::Execute(SfxRequest &rReq) { SfxItemSetFixed<XATTR_FILLHATCH, XATTR_FILLHATCH> aMigrateSet(rWrtSh.GetView().GetPool()); aMigrateSet.Put(XFillHatchItem(u"hatch"_ustr, pTempHatchItem->GetHatchValue())); - SdrModel::MigrateItemSet(&aMigrateSet, pSet, pDrawModel); + SdrModel::MigrateItemSet(&aMigrateSet, pSet, *pDrawModel); } sw_ParagraphDialogResult(pSet, rWrtSh, *pRequest, vCursors->front().get()); |