diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-31 10:27:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-31 10:32:27 +0000 |
commit | 1b36f23b516b44ccccf64f294c35073088835e5f (patch) | |
tree | 873892c685b0a963750c52a404c87a1d2adb7a11 /xmloff/source/transform | |
parent | aeeabc36fd0a4a71238c8c3df2e80ea324f9bac0 (diff) |
loplugin:oncevar in xmloff..xmlsecurity
Change-Id: I2353d3c73130ed9420e8d803a9a96a06549bb6bd
Reviewed-on: https://gerrit.libreoffice.org/30429
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/transform')
-rw-r--r-- | xmloff/source/transform/OOo2Oasis.cxx | 3 | ||||
-rw-r--r-- | xmloff/source/transform/Oasis2OOo.cxx | 6 |
2 files changed, 3 insertions, 6 deletions
diff --git a/xmloff/source/transform/OOo2Oasis.cxx b/xmloff/source/transform/OOo2Oasis.cxx index b8703cde819f..a6b1e85a22e6 100644 --- a/xmloff/source/transform/OOo2Oasis.cxx +++ b/xmloff/source/transform/OOo2Oasis.cxx @@ -1431,8 +1431,7 @@ void XMLTrackedChangesOOoTContext_Impl::StartElement( OSL_ENSURE( rPropSet.is(), "no info property set" ); if( rPropSet.is() ) { - const sal_Char sRedlineProtectionKey[] = "RedlineProtectionKey"; - OUString aPropName(sRedlineProtectionKey); + OUString aPropName("RedlineProtectionKey"); Reference< XPropertySetInfo > xPropSetInfo( rPropSet->getPropertySetInfo() ); if( xPropSetInfo.is() && diff --git a/xmloff/source/transform/Oasis2OOo.cxx b/xmloff/source/transform/Oasis2OOo.cxx index 8e073c81a0e0..b64e0b52570e 100644 --- a/xmloff/source/transform/Oasis2OOo.cxx +++ b/xmloff/source/transform/Oasis2OOo.cxx @@ -1515,8 +1515,7 @@ void XMLConfigItemTContext_Impl::EndElement() GetTransformer().GetPropertySet(); if( rPropSet.is() ) { - const sal_Char sRedlineProtectionKey[] = "RedlineProtectionKey"; - OUString aPropName(sRedlineProtectionKey); + OUString aPropName("RedlineProtectionKey"); Reference< XPropertySetInfo > xPropSetInfo( rPropSet->getPropertySetInfo() ); if( xPropSetInfo.is() && @@ -1570,8 +1569,7 @@ void XMLTrackedChangesOASISTContext_Impl::StartElement( GetTransformer().GetPropertySet(); if( rPropSet.is() ) { - const sal_Char sRedlineProtectionKey[] = "RedlineProtectionKey"; - OUString aPropName(sRedlineProtectionKey); + OUString aPropName("RedlineProtectionKey"); Reference< XPropertySetInfo > xPropSetInfo( rPropSet->getPropertySetInfo() ); if( xPropSetInfo.is() && |