Kaydet (Commit) 9acf5eab authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)

Change-Id: I779e46c9c0db80485d213117028896a7e5b9e943
üst a86b41ca
...@@ -150,7 +150,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetObjConfigur ...@@ -150,7 +150,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetObjConfigur
if ( !m_xObjectConfig.is() ) if ( !m_xObjectConfig.is() )
m_xObjectConfig = GetConfigurationByPath( m_xObjectConfig = GetConfigurationByPath(
OUString( "/org.openoffice.Office.Embedding/Objects" ) ); "/org.openoffice.Office.Embedding/Objects" );
return m_xObjectConfig; return m_xObjectConfig;
} }
...@@ -162,7 +162,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetVerbsConfig ...@@ -162,7 +162,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetVerbsConfig
if ( !m_xVerbsConfig.is() ) if ( !m_xVerbsConfig.is() )
m_xVerbsConfig = GetConfigurationByPath( m_xVerbsConfig = GetConfigurationByPath(
OUString( "/org.openoffice.Office.Embedding/Verbs" )); "/org.openoffice.Office.Embedding/Verbs");
return m_xVerbsConfig; return m_xVerbsConfig;
} }
...@@ -174,7 +174,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetMediaTypeCo ...@@ -174,7 +174,7 @@ uno::Reference< container::XNameAccess > MimeConfigurationHelper::GetMediaTypeCo
if ( !m_xMediaTypeConfig.is() ) if ( !m_xMediaTypeConfig.is() )
m_xMediaTypeConfig = GetConfigurationByPath( m_xMediaTypeConfig = GetConfigurationByPath(
OUString( "/org.openoffice.Office.Embedding/MimeTypeClassIDRelations" )); "/org.openoffice.Office.Embedding/MimeTypeClassIDRelations");
return m_xMediaTypeConfig; return m_xMediaTypeConfig;
} }
......
...@@ -139,9 +139,9 @@ void WriteRelationsInfoSequence( ...@@ -139,9 +139,9 @@ void WriteRelationsInfoSequence(
AttributeList* pRootAttrList = new AttributeList; AttributeList* pRootAttrList = new AttributeList;
uno::Reference< xml::sax::XAttributeList > xRootAttrList( pRootAttrList ); uno::Reference< xml::sax::XAttributeList > xRootAttrList( pRootAttrList );
pRootAttrList->AddAttribute( pRootAttrList->AddAttribute(
OUString( "xmlns" ), "xmlns",
aCDATAString, aCDATAString,
OUString( "http://schemas.openxmlformats.org/package/2006/relationships" ) ); "http://schemas.openxmlformats.org/package/2006/relationships" );
xWriter->startDocument(); xWriter->startDocument();
xWriter->startElement( aRelListElement, xRootAttrList ); xWriter->startElement( aRelListElement, xRootAttrList );
...@@ -204,9 +204,9 @@ void WriteContentSequence( ...@@ -204,9 +204,9 @@ void WriteContentSequence(
AttributeList* pRootAttrList = new AttributeList; AttributeList* pRootAttrList = new AttributeList;
uno::Reference< xml::sax::XAttributeList > xRootAttrList( pRootAttrList ); uno::Reference< xml::sax::XAttributeList > xRootAttrList( pRootAttrList );
pRootAttrList->AddAttribute( pRootAttrList->AddAttribute(
OUString( "xmlns" ), "xmlns",
aCDATAString, aCDATAString,
OUString( "http://schemas.openxmlformats.org/package/2006/content-types" ) ); "http://schemas.openxmlformats.org/package/2006/content-types" );
xWriter->startDocument(); xWriter->startDocument();
xWriter->startElement( aTypesElement, xRootAttrList ); xWriter->startElement( aTypesElement, xRootAttrList );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment