summaryrefslogtreecommitdiff
path: root/sw/source/filter/html/htmlform.cxx
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 /sw/source/filter/html/htmlform.cxx
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 'sw/source/filter/html/htmlform.cxx')
-rw-r--r--sw/source/filter/html/htmlform.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/filter/html/htmlform.cxx b/sw/source/filter/html/htmlform.cxx
index 84e9b8f3f681..b0775197dfce 100644
--- a/sw/source/filter/html/htmlform.cxx
+++ b/sw/source/filter/html/htmlform.cxx
@@ -891,9 +891,7 @@ uno::Reference< drawing::XShape > SwHTMLParser::InsertControl(
if( !rServiceFactory.is() )
return xShape;
- uno::Reference< XInterface > xCreate =
- rServiceFactory ->createInstance(
- OUString("com.sun.star.drawing.ControlShape"));
+ uno::Reference< XInterface > xCreate = rServiceFactory->createInstance( "com.sun.star.drawing.ControlShape" );
if( !xCreate.is() )
return xShape;
@@ -1326,7 +1324,7 @@ void SwHTMLParser::NewForm( bool bAppend )
return;
uno::Reference< XInterface > xInt = rSrvcMgr->createInstance(
- OUString("com.sun.star.form.component.Form") );
+ "com.sun.star.form.component.Form" );
if( !xInt.is() )
return;
@@ -2014,7 +2012,7 @@ void SwHTMLParser::NewTextArea()
return;
}
uno::Reference< uno::XInterface > xInt = rSrvcMgr->createInstance(
- OUString("com.sun.star.form.component.TextField") );
+ "com.sun.star.form.component.TextField" );
if( !xInt.is() )
{
FinishTextArea();
@@ -2282,7 +2280,7 @@ void SwHTMLParser::NewSelect()
return;
}
uno::Reference< uno::XInterface > xInt = rSrvcMgr->createInstance(
- OUString("com.sun.star.form.component.ListBox") );
+ "com.sun.star.form.component.ListBox" );
if( !xInt.is() )
{
FinishTextArea();