summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:38:49 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:38:49 +0100
commit28d63935b222c3c3ce00f2f7649e33fc0916fdfb (patch)
tree04ad2fd5ebe417855ee0913305a9bcb2ccb13430 /xmlscript
parent41a000b7428ea111f99acf1ce00c1d34747e987e (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I8aedb690380d407dcbc290a44d21afa6604b8f95
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_export.cxx6
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx2
-rw-r--r--xmlscript/source/xmldlg_imexp/xmldlg_import.cxx24
-rw-r--r--xmlscript/source/xmllib_imexp/xmllib_export.cxx2
4 files changed, 17 insertions, 17 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
index 936dd48a1137..9ad72727d66d 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx
@@ -1026,13 +1026,13 @@ void ElementDescriptor::readImageScaleModeAttr( OUString const & rPropName, OUSt
switch(nImageScaleMode)
{
case ::awt::ImageScaleMode::NONE:
- addAttribute( rAttrName, OUString( "none") );
+ addAttribute( rAttrName, "none" );
break;
case ::awt::ImageScaleMode::ISOTROPIC:
- addAttribute( rAttrName, OUString( "isotropic") );
+ addAttribute( rAttrName, "isotropic" );
break;
case ::awt::ImageScaleMode::ANISOTROPIC:
- addAttribute( rAttrName, OUString( "anisotropic" ) );
+ addAttribute( rAttrName, "anisotropic" );
break;
default:
OSL_ENSURE( false, "### illegal image scale mode value.");
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
index 424d0ab10254..7ca5ed4bd0b2 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_impmodels.cxx
@@ -208,7 +208,7 @@ void Page::endElement()
}
ctx.importDefaults( 0, 0, _xAttributes ); // inherited from BulletinBoardElement
- ctx.importStringProperty( OUString( "Title" ), OUString( "title" ), _xAttributes );
+ ctx.importStringProperty( "Title", "title", _xAttributes );
ctx.importEvents( _events );
// avoid ring-reference:
// vector< event elements > holding event elements holding this (via _pParent)
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
index e5ad4dc3dee8..57c85a1d6be3 100644
--- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
+++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx
@@ -1564,23 +1564,23 @@ void ImportContext::importEvents(
void ImportContext::importScollableSettings(
Reference< xml::input::XAttributes > const & _xAttributes )
{
- importLongProperty( OUString( "ScrollHeight" ),
- OUString( "scrollheight" ),
+ importLongProperty( "ScrollHeight",
+ "scrollheight",
_xAttributes );
- importLongProperty( OUString( "ScrollWidth" ),
- OUString( "scrollwidth" ),
+ importLongProperty( "ScrollWidth",
+ "scrollwidth",
_xAttributes );
- importLongProperty( OUString( "ScrollTop" ),
- OUString( "scrolltop" ),
+ importLongProperty( "ScrollTop",
+ "scrolltop",
_xAttributes );
- importLongProperty( OUString( "ScrollLeft" ),
- OUString( "scrollleft" ),
+ importLongProperty( "ScrollLeft",
+ "scrollleft",
_xAttributes );
- importBooleanProperty( OUString( "HScroll" ),
- OUString( "hscroll" ),
+ importBooleanProperty( "HScroll",
+ "hscroll",
_xAttributes );
- importBooleanProperty( OUString( "VScroll" ),
- OUString( "vscroll" ),
+ importBooleanProperty( "VScroll",
+ "vscroll",
_xAttributes );
}
diff --git a/xmlscript/source/xmllib_imexp/xmllib_export.cxx b/xmlscript/source/xmllib_imexp/xmllib_export.cxx
index b4b0721d4df0..a10df1535221 100644
--- a/xmlscript/source/xmllib_imexp/xmllib_export.cxx
+++ b/xmlscript/source/xmllib_imexp/xmllib_export.cxx
@@ -130,7 +130,7 @@ SAL_CALL exportLibrary(
Reference< xml::sax::XAttributeList > xElementAttribs;
xElementAttribs = static_cast< xml::sax::XAttributeList* >( pElement );
- pElement->addAttribute( OUString( XMLNS_LIBRARY_PREFIX ":name" ),
+ pElement->addAttribute( XMLNS_LIBRARY_PREFIX ":name",
pElementNames[i] );
pLibElement->addSubElement( pElement );