From 7dd028c0e498ba86d96e0e99744fec6ddc21a91d Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 13 Dec 2023 16:41:40 +0000 Subject: cid#1545211 COPY_INSTEAD_OF_MOVE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and cid#1545218 COPY_INSTEAD_OF_MOVE cid#1545232 COPY_INSTEAD_OF_MOVE cid#1545243 COPY_INSTEAD_OF_MOVE cid#1545246 COPY_INSTEAD_OF_MOVE cid#1545251 COPY_INSTEAD_OF_MOVE cid#1545260 COPY_INSTEAD_OF_MOVE cid#1545261 COPY_INSTEAD_OF_MOVE cid#1545276 COPY_INSTEAD_OF_MOVE cid#1545295 COPY_INSTEAD_OF_MOVE cid#1545297 COPY_INSTEAD_OF_MOVE cid#1545301 COPY_INSTEAD_OF_MOVE cid#1545302 COPY_INSTEAD_OF_MOVE Change-Id: I97ba935a4a2b8715b55ebbf6e853a66260b2eb90 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160686 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- sd/source/ui/view/drviews2.cxx | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'sd/source') diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index 90cde7c792f5..54b16db4b1e7 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -289,23 +289,27 @@ private: const OUString& aKey = pCustomPropertyField->GetName(); if (m_aKeyCreator.isMarkingTextKey(aKey)) { - OUString aValue = svx::classification::getProperty(m_xPropertyContainer, aKey); - m_aResults.push_back({ svx::ClassificationType::TEXT, aValue, sBlank, sBlank }); + m_aResults.push_back({ svx::ClassificationType::TEXT, + svx::classification::getProperty(m_xPropertyContainer, aKey), + sBlank, sBlank }); } else if (m_aKeyCreator.isCategoryNameKey(aKey) || m_aKeyCreator.isCategoryIdentifierKey(aKey)) { - OUString aValue = svx::classification::getProperty(m_xPropertyContainer, aKey); - m_aResults.push_back({ svx::ClassificationType::CATEGORY, aValue, sBlank, sBlank }); + m_aResults.push_back({ svx::ClassificationType::CATEGORY, + svx::classification::getProperty(m_xPropertyContainer, aKey), + sBlank, sBlank }); } else if (m_aKeyCreator.isMarkingKey(aKey)) { - OUString aValue = svx::classification::getProperty(m_xPropertyContainer, aKey); - m_aResults.push_back({ svx::ClassificationType::MARKING, aValue, sBlank, sBlank }); + m_aResults.push_back({ svx::ClassificationType::MARKING, + svx::classification::getProperty(m_xPropertyContainer, aKey), + sBlank, sBlank }); } else if (m_aKeyCreator.isIntellectualPropertyPartKey(aKey)) { - OUString aValue = svx::classification::getProperty(m_xPropertyContainer, aKey); - m_aResults.push_back({ svx::ClassificationType::INTELLECTUAL_PROPERTY_PART, aValue, sBlank, sBlank }); + m_aResults.push_back({ svx::ClassificationType::INTELLECTUAL_PROPERTY_PART, + svx::classification::getProperty(m_xPropertyContainer, aKey), + sBlank, sBlank }); } } } -- cgit