summaryrefslogtreecommitdiff
path: root/vcl/source/filter/GraphicNativeTransform.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:38:34 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:38:34 +0100
commit36328248309ebebee616452248d55923280deabb (patch)
tree3aec7576114f445dfe77ee1b59e332cf1f5fdc6c /vcl/source/filter/GraphicNativeTransform.cxx
parent4d6b9053a437dc128d186f8d100ef4a351136f54 (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I7ac150458a72963f3336d30ef9d99d7c0d81c024
Diffstat (limited to 'vcl/source/filter/GraphicNativeTransform.cxx')
-rw-r--r--vcl/source/filter/GraphicNativeTransform.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/filter/GraphicNativeTransform.cxx b/vcl/source/filter/GraphicNativeTransform.cxx
index 664749790d38..11a17a5f091f 100644
--- a/vcl/source/filter/GraphicNativeTransform.cxx
+++ b/vcl/source/filter/GraphicNativeTransform.cxx
@@ -76,11 +76,11 @@ bool GraphicNativeTransform::rotate(sal_uInt16 aInputRotation)
}
else if ( aLink.GetType() == GFX_LINK_TYPE_NATIVE_PNG )
{
- return rotateGeneric(aRotation, OUString("png"));
+ return rotateGeneric(aRotation, "png");
}
else if ( aLink.GetType() == GFX_LINK_TYPE_NATIVE_GIF )
{
- return rotateGeneric(aRotation, OUString("gif"));
+ return rotateGeneric(aRotation, "gif");
}
else if ( aLink.GetType() == GFX_LINK_TYPE_NONE )
{
@@ -127,7 +127,7 @@ bool GraphicNativeTransform::rotateGeneric(sal_uInt16 aRotation, const OUString&
BitmapEx aBitmap = mrGraphic.GetBitmapEx();
aBitmap.Rotate(aRotation, COL_BLACK);
- rFilter.ExportGraphic( aBitmap, OUString( "none" ), aStream, nFilterFormat, &aFilterData );
+ rFilter.ExportGraphic( aBitmap, "none", aStream, nFilterFormat, &aFilterData );
aStream.Seek( STREAM_SEEK_TO_BEGIN );
@@ -145,7 +145,7 @@ bool GraphicNativeTransform::rotateJPEG(sal_uInt16 aRotation)
if (aBitmap.GetSizePixel().Width() % 16 != 0 ||
aBitmap.GetSizePixel().Height() % 16 != 0 )
{
- rotateGeneric(aRotation, OUString("png"));
+ rotateGeneric(aRotation, "png");
}
else
{