summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-07-08 15:19:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-07-09 08:04:11 +0200
commit726ac1d0c6c32a27646117788428907cc3b57278 (patch)
tree21255e4cd3a3b7b3aa6474c56dbdc7536e62a88f /chart2
parentfcad7309358bc66dd37f37b64d30be841bd61832 (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 'chart2')
-rw-r--r--chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx8
-rw-r--r--chart2/source/controller/sidebar/ChartAreaPanel.cxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx b/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
index b67872d3d0e3..0ca5be652a84 100644
--- a/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/GraphicPropertyItemConverter.cxx
@@ -295,7 +295,7 @@ void GraphicPropertyItemConverter::FillSpecialItem(
// translate model name to UI-name for predefined entries, so
// that the correct entry is chosen in the list of UI-names
- std::unique_ptr<XLineDashItem> pItemToPut = aItem.checkForUniqueItem( & m_rDrawModel );
+ std::unique_ptr<XLineDashItem> pItemToPut = aItem.checkForUniqueItem( m_rDrawModel );
if(pItemToPut)
rOutItemSet.Put( std::move(pItemToPut) );
@@ -321,7 +321,7 @@ void GraphicPropertyItemConverter::FillSpecialItem(
// translate model name to UI-name for predefined entries, so
// that the correct entry is chosen in the list of UI-names
- std::unique_ptr<XFillGradientItem> pItemToPut = aItem.checkForUniqueItem( & m_rDrawModel );
+ std::unique_ptr<XFillGradientItem> pItemToPut = aItem.checkForUniqueItem( m_rDrawModel );
if(pItemToPut)
rOutItemSet.Put(std::move(pItemToPut) );
@@ -347,7 +347,7 @@ void GraphicPropertyItemConverter::FillSpecialItem(
// translate model name to UI-name for predefined entries, so
// that the correct entry is chosen in the list of UI-names
- std::unique_ptr<XFillHatchItem> pItemToPut = aItem.checkForUniqueItem( & m_rDrawModel );
+ std::unique_ptr<XFillHatchItem> pItemToPut = aItem.checkForUniqueItem( m_rDrawModel );
if(pItemToPut)
rOutItemSet.Put( std::move(pItemToPut) );
@@ -368,7 +368,7 @@ void GraphicPropertyItemConverter::FillSpecialItem(
// translate model name to UI-name for predefined entries, so
// that the correct entry is chosen in the list of UI-names
- std::unique_ptr<XFillBitmapItem> pItemToPut = aItem.checkForUniqueItem( & m_rDrawModel );
+ std::unique_ptr<XFillBitmapItem> pItemToPut = aItem.checkForUniqueItem( m_rDrawModel );
if(pItemToPut)
rOutItemSet.Put( std::move(pItemToPut) );
diff --git a/chart2/source/controller/sidebar/ChartAreaPanel.cxx b/chart2/source/controller/sidebar/ChartAreaPanel.cxx
index 189ed77fd762..967bc20a0d91 100644
--- a/chart2/source/controller/sidebar/ChartAreaPanel.cxx
+++ b/chart2/source/controller/sidebar/ChartAreaPanel.cxx
@@ -473,7 +473,7 @@ void ChartAreaPanel::updateData()
DrawModelWrapper* pModelWrapper = getDrawModelWrapper(mxModel);
if (pModelWrapper)
{
- pBitmapItem = aBitmapItem.checkForUniqueItem(&pModelWrapper->getSdrModel());
+ pBitmapItem = aBitmapItem.checkForUniqueItem(pModelWrapper->getSdrModel());
}
}
catch (...)