summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-30 08:40:11 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-30 08:59:59 +0000
commit3bc5df7f32501075149e4b41f6e98ea8dd2cfcbd (patch)
tree6e7f5d288cf65935b3ed1f0b88200d32d2f016f0 /xmloff
parent2e528df76b168a221c6d251d9b076bce5ba051a3 (diff)
UNO: no need to use OUString constructor when calling createInstance
Change-Id: I37da28539b94706574116d0fff5f008aabfb5526 Reviewed-on: https://gerrit.libreoffice.org/19682 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/chart/SchXMLImport.cxx2
-rw-r--r--xmloff/source/core/xmlexp.cxx6
-rw-r--r--xmloff/source/draw/ximppage.cxx3
-rw-r--r--xmloff/source/style/PageMasterImportContext.cxx3
-rw-r--r--xmloff/source/text/txtstyli.cxx3
5 files changed, 6 insertions, 11 deletions
diff --git a/xmloff/source/chart/SchXMLImport.cxx b/xmloff/source/chart/SchXMLImport.cxx
index 40a4608d8704..2f7a58607b42 100644
--- a/xmloff/source/chart/SchXMLImport.cxx
+++ b/xmloff/source/chart/SchXMLImport.cxx
@@ -487,7 +487,7 @@ Reference< chart2::XDataSeries > SchXMLImportHelper::GetNewDataSeries(
{
xResult.set(
xContext->getServiceManager()->createInstanceWithContext(
- OUString( "com.sun.star.chart2.DataSeries" ),
+ "com.sun.star.chart2.DataSeries",
xContext ), uno::UNO_QUERY_THROW );
}
if( xResult.is() )
diff --git a/xmloff/source/core/xmlexp.cxx b/xmloff/source/core/xmlexp.cxx
index 705fd4f3835a..97760c855911 100644
--- a/xmloff/source/core/xmlexp.cxx
+++ b/xmloff/source/core/xmlexp.cxx
@@ -1337,16 +1337,14 @@ sal_uInt32 SvXMLExport::exportDoc( enum ::xmloff::token::XMLTokenEnum eClass )
if( !mxGraphicResolver.is() )
{
mxGraphicResolver = Reference< XGraphicObjectResolver >::query(
- xFactory->createInstance(
- OUString( "com.sun.star.document.ExportGraphicObjectResolver")));
+ xFactory->createInstance( "com.sun.star.document.ExportGraphicObjectResolver" ));
bOwnGraphicResolver = mxGraphicResolver.is();
}
if( !mxEmbeddedResolver.is() )
{
mxEmbeddedResolver = Reference< XEmbeddedObjectResolver >::query(
- xFactory->createInstance(
- OUString( "com.sun.star.document.ExportEmbeddedObjectResolver")));
+ xFactory->createInstance( "com.sun.star.document.ExportEmbeddedObjectResolver" ));
bOwnEmbeddedResolver = mxEmbeddedResolver.is();
}
}
diff --git a/xmloff/source/draw/ximppage.cxx b/xmloff/source/draw/ximppage.cxx
index 60b7d90142ab..678109e099d1 100644
--- a/xmloff/source/draw/ximppage.cxx
+++ b/xmloff/source/draw/ximppage.cxx
@@ -383,8 +383,7 @@ void SdXMLGenericPageContext::SetStyle( OUString& rStyleName )
if(xServiceFact.is())
{
xBackgroundSet = Reference< beans::XPropertySet >::query(
- xServiceFact->createInstance(
- OUString("com.sun.star.drawing.Background")));
+ xServiceFact->createInstance("com.sun.star.drawing.Background"));
}
}
diff --git a/xmloff/source/style/PageMasterImportContext.cxx b/xmloff/source/style/PageMasterImportContext.cxx
index eea9debfefce..08385cdbea35 100644
--- a/xmloff/source/style/PageMasterImportContext.cxx
+++ b/xmloff/source/style/PageMasterImportContext.cxx
@@ -317,8 +317,7 @@ void PageStyleContext::SetDefaults( )
Reference < XMultiServiceFactory > xFactory ( GetImport().GetModel(), UNO_QUERY);
if (xFactory.is())
{
- Reference < XInterface > xInt = xFactory->createInstance (
- OUString ( "com.sun.star.text.Defaults" ) );
+ Reference < XInterface > xInt = xFactory->createInstance( "com.sun.star.text.Defaults" );
Reference < beans::XPropertySet > xProperties ( xInt, UNO_QUERY );
if ( xProperties.is() )
FillPropertySet ( xProperties );
diff --git a/xmloff/source/text/txtstyli.cxx b/xmloff/source/text/txtstyli.cxx
index 9779fe61700a..3a34c29224ee 100644
--- a/xmloff/source/text/txtstyli.cxx
+++ b/xmloff/source/text/txtstyli.cxx
@@ -259,8 +259,7 @@ void XMLTextStyleContext::SetDefaults( )
Reference < XMultiServiceFactory > xFactory ( GetImport().GetModel(), UNO_QUERY);
if (xFactory.is())
{
- Reference < XInterface > xInt = xFactory->createInstance (
- OUString ( "com.sun.star.text.Defaults" ) );
+ Reference < XInterface > xInt = xFactory->createInstance( "com.sun.star.text.Defaults" );
Reference < XPropertySet > xProperties ( xInt, UNO_QUERY );
if ( xProperties.is() )
FillPropertySet ( xProperties );