Kaydet (Commit) 69b81b64 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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

Change-Id: I23de1fa2f8e6c0cf6281b32eab179e131aa98056
üst b8f0442f
......@@ -66,7 +66,7 @@ AnimationActivitySharedPtr AnimationTransformNode::createActivity() const
return ActivitiesFactory::createAnimateActivity(
aParms,
AnimationFactory::createNumberPropertyAnimation(
OUString("Rotate"),
"Rotate",
rShape,
getContext().mpSubsettableShapeManager,
getSlideSize() ),
......@@ -76,7 +76,7 @@ AnimationActivitySharedPtr AnimationTransformNode::createActivity() const
return ActivitiesFactory::createAnimateActivity(
aParms,
AnimationFactory::createNumberPropertyAnimation(
OUString("SkewX"),
"SkewX",
rShape,
getContext().mpSubsettableShapeManager,
getSlideSize() ),
......@@ -86,7 +86,7 @@ AnimationActivitySharedPtr AnimationTransformNode::createActivity() const
return ActivitiesFactory::createAnimateActivity(
aParms,
AnimationFactory::createNumberPropertyAnimation(
OUString("SkewY"),
"SkewY",
rShape,
getContext().mpSubsettableShapeManager,
getSlideSize() ),
......
......@@ -165,7 +165,7 @@ RehearseTimingsActivity::RehearseTimingsActivity( const SlideShowContext& rConte
blackHole->SetMapMode( MAP_PIXEL );
Rectangle rect;
const FontMetric metric( blackHole->GetFontMetric() );
blackHole->GetTextBoundRect( rect, OUString("XX:XX:XX") );
blackHole->GetTextBoundRect( rect, "XX:XX:XX" );
maSpriteSizePixel.setX( rect.getWidth() * 12 / 10 );
maSpriteSizePixel.setY( metric.GetLineHeight() * 11 / 10 );
mnYOffset = (metric.GetAscent() + (metric.GetLineHeight() / 20));
......
......@@ -290,7 +290,7 @@ ShapeSharedPtr ShapeImporter::createShape(
// (Netscape)Plugin shape. This is a special object
return createAppletShape( xCurrShape,
mnAscendingPrio,
OUString( "com.sun.star.comp.sfx2.PluginObject" ),
"com.sun.star.comp.sfx2.PluginObject",
aPropertyValues,
SAL_N_ELEMENTS(aPropertyValues),
mrContext );
......@@ -310,7 +310,7 @@ ShapeSharedPtr ShapeImporter::createShape(
// (Java)Applet shape. This is a special object
return createAppletShape( xCurrShape,
mnAscendingPrio,
OUString( "com.sun.star.comp.sfx2.AppletObject" ),
"com.sun.star.comp.sfx2.AppletObject",
aPropertyValues,
SAL_N_ELEMENTS(aPropertyValues),
mrContext );
......
......@@ -247,7 +247,7 @@ namespace slideshow
if( xPropSet.is() &&
getPropertyValue( xParentWindow,
xPropSet,
OUString("Window" )) )
"Window") )
{
const awt::Rectangle aRect( xParentWindow->getPosSize() );
......@@ -372,19 +372,19 @@ namespace slideshow
bool bLoop( false );
getPropertyValue( bLoop,
rxProps,
OUString( "Loop" ));
"Loop");
mxPlayer->setPlaybackLoop( bLoop );
bool bMute( false );
getPropertyValue( bMute,
rxProps,
OUString( "Mute" ));
"Mute");
mxPlayer->setMute( bMute || !mbIsSoundEnabled);
sal_Int16 nVolumeDB(0);
getPropertyValue( nVolumeDB,
rxProps,
OUString( "VolumeDB" ));
"VolumeDB");
mxPlayer->setVolumeDB( nVolumeDB );
if( mxPlayerWindow.is() )
......@@ -392,7 +392,7 @@ namespace slideshow
media::ZoomLevel eZoom(media::ZoomLevel_FIT_TO_WINDOW);
getPropertyValue( eZoom,
rxProps,
OUString( "Zoom" ));
"Zoom");
mxPlayerWindow->setZoomLevel( eZoom );
}
}
......
......@@ -2161,8 +2161,7 @@ void queryAutomaticSlideTransition( uno::Reference<drawing::XDrawPage> const& xD
if( !xPropSet.is() ||
!getPropertyValue( nChange,
xPropSet,
OUString(
"Change")) )
"Change") )
{
OSL_TRACE(
"queryAutomaticSlideTransition(): "
......@@ -2174,8 +2173,7 @@ void queryAutomaticSlideTransition( uno::Reference<drawing::XDrawPage> const& xD
if( !xPropSet.is() ||
!getPropertyValue( nAutomaticNextSlideTimeout,
xPropSet,
OUString(
"HighResDuration")) )
"HighResDuration") )
{
OSL_TRACE(
"queryAutomaticSlideTransition(): "
......
......@@ -334,7 +334,7 @@ AnimationActivitySharedPtr createShapeTransitionByType(
pGeneratedActivity = ActivitiesFactory::createSimpleActivity(
rParms,
AnimationFactory::createNumberPropertyAnimation(
OUString("Opacity"),
"Opacity",
rShape,
rShapeManager,
rSlideSize ),
......
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