summaryrefslogtreecommitdiff
path: root/xmloff/source/draw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-14 14:33:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-14 19:12:33 +0200
commite00225bc7744abd365f1cc7133d43026e9438f13 (patch)
tree906d069a000fc71e215946cdb4c57f43949df784 /xmloff/source/draw
parent1aaf5d44dceecc13a3bc8e08c13d0b2ba278c462 (diff)
elide some temporary OUStrings
Change-Id: I8539dd5d9490a14ebac0520486a8322ff86a6cb6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137081 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/draw')
-rw-r--r--xmloff/source/draw/ximpshap.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx
index 22c302205e02..2dc2e33fb91c 100644
--- a/xmloff/source/draw/ximpshap.cxx
+++ b/xmloff/source/draw/ximpshap.cxx
@@ -707,8 +707,9 @@ void SdXMLShapeContext::SetStyle( bool bSupportsStyle /* = true */)
// SwTextBoxHelper::syncProperty, which indirectly calls SwTextBoxHelper::isTextBox)
uno::Reference<beans::XPropertySetInfo> xPropertySetInfo
= xPropSet->getPropertySetInfo();
- if (xPropertySetInfo->hasPropertyByName("TextBox"))
- xPropSet->setPropertyValue("TextBox", uno::Any(mbTextBox));
+ static constexpr OUStringLiteral sTextBox = u"TextBox";
+ if (xPropertySetInfo->hasPropertyByName(sTextBox))
+ xPropSet->setPropertyValue(sTextBox, uno::Any(mbTextBox));
// if this is an auto style, set its properties
if(bAutoStyle && pDocStyle)