diff options
Diffstat (limited to 'sdext/source/minimizer/impoptimizer.cxx')
-rw-r--r-- | sdext/source/minimizer/impoptimizer.cxx | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sdext/source/minimizer/impoptimizer.cxx b/sdext/source/minimizer/impoptimizer.cxx index 44af41ce2889..f2be9365ed66 100644 --- a/sdext/source/minimizer/impoptimizer.cxx +++ b/sdext/source/minimizer/impoptimizer.cxx @@ -122,8 +122,7 @@ void ImpDeleteHiddenSlides( const Reference< XModel >& rxModel ) Reference< XPropertySet > xPropSet( xDrawPage, UNO_QUERY_THROW ); bool bVisible = true; - const OUString sVisible( "Visible" ); - if ( xPropSet->getPropertyValue( sVisible ) >>= bVisible ) + if ( xPropSet->getPropertyValue( "Visible" ) >>= bVisible ) { if (!bVisible ) { @@ -153,8 +152,7 @@ void ImpDeleteNotesPages( const Reference< XModel >& rxModel ) while( xShapes->getCount() ) xShapes->remove( Reference< XShape >( xShapes->getByIndex( xShapes->getCount() - 1 ), UNO_QUERY_THROW ) ); - const OUString sLayout( "Layout" ); - xPropSet->setPropertyValue( sLayout, Any( (sal_Int16)21 ) ); + xPropSet->setPropertyValue( "Layout", Any( (sal_Int16)21 ) ); } } catch( Exception& ) @@ -173,9 +171,8 @@ void ImpConvertOLE( const Reference< XModel >& rxModel, sal_Int32 nOLEOptimizati Reference< XShapes > xShapes( xDrawPages->getByIndex( i ), UNO_QUERY_THROW ); for ( sal_Int32 j = 0; j < xShapes->getCount(); j++ ) { - const OUString sOLE2Shape( "com.sun.star.drawing.OLE2Shape" ); Reference< XShape > xShape( xShapes->getByIndex( j ), UNO_QUERY_THROW ); - if ( xShape->getShapeType() == sOLE2Shape ) + if ( xShape->getShapeType() == "com.sun.star.drawing.OLE2Shape" ) { Reference< XPropertySet > xPropSet( xShape, UNO_QUERY_THROW ); @@ -191,9 +188,8 @@ void ImpConvertOLE( const Reference< XModel >& rxModel, sal_Int32 nOLEOptimizati Reference< XGraphic > xGraphic; if ( xPropSet->getPropertyValue( "Graphic" ) >>= xGraphic ) { - const OUString sGraphicShape( "com.sun.star.drawing.GraphicObjectShape" ); Reference< XMultiServiceFactory > xFact( rxModel, UNO_QUERY_THROW ); - Reference< XShape > xShape2( xFact->createInstance( sGraphicShape ), UNO_QUERY_THROW ); + Reference< XShape > xShape2( xFact->createInstance( "com.sun.star.drawing.GraphicObjectShape" ), UNO_QUERY_THROW ); xShapes->add( xShape2 ); xShape2->setPosition( xShape->getPosition() ); xShape2->setSize( xShape->getSize() ); |