summaryrefslogtreecommitdiff
path: root/comphelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:34:55 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:34:55 +0100
commit9acf5eab9af5bb620af1913f100c9ba997301643 (patch)
treee26be473b1933fafe147a030ceafafd05df4d8f2 /comphelper
parenta86b41ca81d7ae592fd264e2bb5d480ac328c45e (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I779e46c9c0db80485d213117028896a7e5b9e943
Diffstat (limited to 'comphelper')
-rw-r--r--comphelper/source/misc/mimeconfighelper.cxx6
-rw-r--r--comphelper/source/xml/ofopxmlhelper.cxx8
2 files changed, 7 insertions, 7 deletions
diff --git a/comphelper/source/misc/mimeconfighelper.cxx b/comphelper/source/misc/mimeconfighelper.cxx
index c927c7e40efa..c11170b53efa 100644
--- a/comphelper/source/misc/mimeconfighelper.cxx
+++ b/comphelper/source/misc/mimeconfighelper.cxx
@@ -150,7 +150,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetObjConfigur
if ( !m_xObjectConfig.is() )
m_xObjectConfig = GetConfigurationByPath(
- OUString( "/org.openoffice.Office.Embedding/Objects" ) );
+ "/org.openoffice.Office.Embedding/Objects" );
return m_xObjectConfig;
}
@@ -162,7 +162,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetVerbsConfig
if ( !m_xVerbsConfig.is() )
m_xVerbsConfig = GetConfigurationByPath(
- OUString( "/org.openoffice.Office.Embedding/Verbs" ));
+ "/org.openoffice.Office.Embedding/Verbs");
return m_xVerbsConfig;
}
@@ -174,7 +174,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetMediaTypeCo
if ( !m_xMediaTypeConfig.is() )
m_xMediaTypeConfig = GetConfigurationByPath(
- OUString( "/org.openoffice.Office.Embedding/MimeTypeClassIDRelations" ));
+ "/org.openoffice.Office.Embedding/MimeTypeClassIDRelations");
return m_xMediaTypeConfig;
}
diff --git a/comphelper/source/xml/ofopxmlhelper.cxx b/comphelper/source/xml/ofopxmlhelper.cxx
index 7b98dfb455e7..23ced17483a2 100644
--- a/comphelper/source/xml/ofopxmlhelper.cxx
+++ b/comphelper/source/xml/ofopxmlhelper.cxx
@@ -139,9 +139,9 @@ void WriteRelationsInfoSequence(
AttributeList* pRootAttrList = new AttributeList;
uno::Reference< xml::sax::XAttributeList > xRootAttrList( pRootAttrList );
pRootAttrList->AddAttribute(
- OUString( "xmlns" ),
+ "xmlns",
aCDATAString,
- OUString( "http://schemas.openxmlformats.org/package/2006/relationships" ) );
+ "http://schemas.openxmlformats.org/package/2006/relationships" );
xWriter->startDocument();
xWriter->startElement( aRelListElement, xRootAttrList );
@@ -204,9 +204,9 @@ void WriteContentSequence(
AttributeList* pRootAttrList = new AttributeList;
uno::Reference< xml::sax::XAttributeList > xRootAttrList( pRootAttrList );
pRootAttrList->AddAttribute(
- OUString( "xmlns" ),
+ "xmlns",
aCDATAString,
- OUString( "http://schemas.openxmlformats.org/package/2006/content-types" ) );
+ "http://schemas.openxmlformats.org/package/2006/content-types" );
xWriter->startDocument();
xWriter->startElement( aTypesElement, xRootAttrList );