diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-25 14:53:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-11-26 09:45:44 +0100 |
commit | a916adba23e81c8c661369d2c06fbe9c6714d9c2 (patch) | |
tree | 21d643a0376c29a4fb5efcdcdef6ccd75f7b1b57 /oox | |
parent | 6dfcabf54a86f7204b4924718a930be5d13b1eeb (diff) |
loplugin:stringliteraldefine in l10ntools..oox
Change-Id: Ia19d247f3cf439405c05a53c4cf2c9d0e7344560
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125811
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/core/xmlfilterbase.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx index daea0ad49962..9625f0f509ba 100644 --- a/oox/source/core/xmlfilterbase.cxx +++ b/oox/source/core/xmlfilterbase.cxx @@ -1130,8 +1130,7 @@ void XmlFilterBase::exportCustomFragments() uno::Reference<beans::XPropertySet> xPropSet(xModel, uno::UNO_QUERY_THROW); uno::Reference<beans::XPropertySetInfo> xPropSetInfo = xPropSet->getPropertySetInfo(); - static constexpr OUStringLiteral aName = u"" UNO_NAME_MISC_OBJ_INTEROPGRABBAG; - if (!xPropSetInfo->hasPropertyByName(aName)) + if (!xPropSetInfo->hasPropertyByName(UNO_NAME_MISC_OBJ_INTEROPGRABBAG)) return; uno::Sequence<uno::Reference<xml::dom::XDocument>> customXmlDomlist; @@ -1142,7 +1141,7 @@ void XmlFilterBase::exportCustomFragments() uno::Sequence<uno::Sequence<beans::StringPair>> aContentTypes; uno::Sequence<beans::PropertyValue> propList; - xPropSet->getPropertyValue(aName) >>= propList; + xPropSet->getPropertyValue(UNO_NAME_MISC_OBJ_INTEROPGRABBAG) >>= propList; for (const auto& rProp : std::as_const(propList)) { const OUString propName = rProp.Name; |