From 75ea7ce9fb3f1bbff9abb4f324db8edb84a374d5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 13 Jul 2017 11:44:15 +0200 Subject: [PATCH] loplugin:oncevar: empty strings: vcl Change-Id: Ic9a3b72dbff3333cba45b9ad4b75e8de12bc4c06 --- vcl/source/edit/texteng.cxx | 3 +-- vcl/source/filter/jpeg/JpegWriter.cxx | 3 +-- vcl/source/filter/wmf/winmtf.cxx | 3 +-- vcl/source/filter/wmf/wmfwr.cxx | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 5f8084ee9d31..ef4edfd46537 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -1323,8 +1323,7 @@ void TextEngine::UndoActionStart( sal_uInt16 nId ) { if ( IsUndoEnabled() && !IsInUndo() ) { - OUString aComment; - GetUndoManager().EnterListAction( aComment, OUString(), nId, ViewShellId(-1) ); + GetUndoManager().EnterListAction( OUString(), OUString(), nId, ViewShellId(-1) ); } } diff --git a/vcl/source/filter/jpeg/JpegWriter.cxx b/vcl/source/filter/jpeg/JpegWriter.cxx index 6ffa172c3018..eff1bacd2ddb 100644 --- a/vcl/source/filter/jpeg/JpegWriter.cxx +++ b/vcl/source/filter/jpeg/JpegWriter.cxx @@ -185,8 +185,7 @@ bool JPEGWriter::Write( const Graphic& rGraphic ) if ( mxStatusIndicator.is() ) { - OUString aMsg; - mxStatusIndicator->start( aMsg, 100 ); + mxStatusIndicator->start( OUString(), 100 ); } Bitmap aGraphicBmp( rGraphic.GetBitmap() ); diff --git a/vcl/source/filter/wmf/winmtf.cxx b/vcl/source/filter/wmf/winmtf.cxx index 9e6b84dbb112..5053307069db 100644 --- a/vcl/source/filter/wmf/winmtf.cxx +++ b/vcl/source/filter/wmf/winmtf.cxx @@ -291,8 +291,7 @@ WinMtf::WinMtf( GDIMetaFile& rGDIMetaFile, SvStream& rStreamWMF, FilterConfigIte xStatusIndicator = pFilterConfigItem->GetStatusIndicator(); if ( xStatusIndicator.is() ) { - OUString aMsg; - xStatusIndicator->start( aMsg, 100 ); + xStatusIndicator->start( OUString(), 100 ); } } } diff --git a/vcl/source/filter/wmf/wmfwr.cxx b/vcl/source/filter/wmf/wmfwr.cxx index e89199dced08..7facdbd8aa93 100644 --- a/vcl/source/filter/wmf/wmfwr.cxx +++ b/vcl/source/filter/wmf/wmfwr.cxx @@ -1693,8 +1693,7 @@ bool WMFWriter::WriteWMF( const GDIMetaFile& rMTF, SvStream& rTargetStream, xStatusIndicator = pFConfigItem->GetStatusIndicator(); if ( xStatusIndicator.is() ) { - OUString aMsg; - xStatusIndicator->start( aMsg, 100 ); + xStatusIndicator->start( OUString(), 100 ); } } nLastPercent=0;