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