Kaydet (Commit) 28d63935 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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

Change-Id: I8aedb690380d407dcbc290a44d21afa6604b8f95
üst 41a000b7
...@@ -1026,13 +1026,13 @@ void ElementDescriptor::readImageScaleModeAttr( OUString const & rPropName, OUSt ...@@ -1026,13 +1026,13 @@ void ElementDescriptor::readImageScaleModeAttr( OUString const & rPropName, OUSt
switch(nImageScaleMode) switch(nImageScaleMode)
{ {
case ::awt::ImageScaleMode::NONE: case ::awt::ImageScaleMode::NONE:
addAttribute( rAttrName, OUString( "none") ); addAttribute( rAttrName, "none" );
break; break;
case ::awt::ImageScaleMode::ISOTROPIC: case ::awt::ImageScaleMode::ISOTROPIC:
addAttribute( rAttrName, OUString( "isotropic") ); addAttribute( rAttrName, "isotropic" );
break; break;
case ::awt::ImageScaleMode::ANISOTROPIC: case ::awt::ImageScaleMode::ANISOTROPIC:
addAttribute( rAttrName, OUString( "anisotropic" ) ); addAttribute( rAttrName, "anisotropic" );
break; break;
default: default:
OSL_ENSURE( false, "### illegal image scale mode value."); OSL_ENSURE( false, "### illegal image scale mode value.");
......
...@@ -208,7 +208,7 @@ void Page::endElement() ...@@ -208,7 +208,7 @@ void Page::endElement()
} }
ctx.importDefaults( 0, 0, _xAttributes ); // inherited from BulletinBoardElement ctx.importDefaults( 0, 0, _xAttributes ); // inherited from BulletinBoardElement
ctx.importStringProperty( OUString( "Title" ), OUString( "title" ), _xAttributes ); ctx.importStringProperty( "Title", "title", _xAttributes );
ctx.importEvents( _events ); ctx.importEvents( _events );
// avoid ring-reference: // avoid ring-reference:
// vector< event elements > holding event elements holding this (via _pParent) // vector< event elements > holding event elements holding this (via _pParent)
......
...@@ -1564,23 +1564,23 @@ void ImportContext::importEvents( ...@@ -1564,23 +1564,23 @@ void ImportContext::importEvents(
void ImportContext::importScollableSettings( void ImportContext::importScollableSettings(
Reference< xml::input::XAttributes > const & _xAttributes ) Reference< xml::input::XAttributes > const & _xAttributes )
{ {
importLongProperty( OUString( "ScrollHeight" ), importLongProperty( "ScrollHeight",
OUString( "scrollheight" ), "scrollheight",
_xAttributes ); _xAttributes );
importLongProperty( OUString( "ScrollWidth" ), importLongProperty( "ScrollWidth",
OUString( "scrollwidth" ), "scrollwidth",
_xAttributes ); _xAttributes );
importLongProperty( OUString( "ScrollTop" ), importLongProperty( "ScrollTop",
OUString( "scrolltop" ), "scrolltop",
_xAttributes ); _xAttributes );
importLongProperty( OUString( "ScrollLeft" ), importLongProperty( "ScrollLeft",
OUString( "scrollleft" ), "scrollleft",
_xAttributes ); _xAttributes );
importBooleanProperty( OUString( "HScroll" ), importBooleanProperty( "HScroll",
OUString( "hscroll" ), "hscroll",
_xAttributes ); _xAttributes );
importBooleanProperty( OUString( "VScroll" ), importBooleanProperty( "VScroll",
OUString( "vscroll" ), "vscroll",
_xAttributes ); _xAttributes );
} }
......
...@@ -130,7 +130,7 @@ SAL_CALL exportLibrary( ...@@ -130,7 +130,7 @@ SAL_CALL exportLibrary(
Reference< xml::sax::XAttributeList > xElementAttribs; Reference< xml::sax::XAttributeList > xElementAttribs;
xElementAttribs = static_cast< xml::sax::XAttributeList* >( pElement ); xElementAttribs = static_cast< xml::sax::XAttributeList* >( pElement );
pElement->addAttribute( OUString( XMLNS_LIBRARY_PREFIX ":name" ), pElement->addAttribute( XMLNS_LIBRARY_PREFIX ":name",
pElementNames[i] ); pElementNames[i] );
pLibElement->addSubElement( pElement ); pLibElement->addSubElement( pElement );
......
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