From 56e6f0da839c53867947d1e06f0e733022df7d0e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 4 Sep 2015 12:16:17 +0200 Subject: new loplugin: badvectorinit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit look for places calling the 1-argument vector fill constructor and then immediately called push_back, which is generally a sign that its leaving empty slots. Change-Id: I34e69b8d09cc48c0d409499faaf192b9f86bc517 Reviewed-on: https://gerrit.libreoffice.org/17525 Reviewed-by: Björn Michaelsen Tested-by: Björn Michaelsen --- sw/source/core/layout/paintfrm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 31b5dae4fadf..ac06ab9b76ca 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -4426,7 +4426,7 @@ static void lcl_PaintShadow( const SwRect& rRect, SwRect& rOutRect, const long nWidth = ::lcl_AlignWidth ( rShadow.GetWidth(), properties ); const long nHeight = ::lcl_AlignHeight( rShadow.GetWidth(), properties ); - SwRects aRegion( 2 ); + SwRects aRegion; SwRect aOut( rOutRect ); switch ( rShadow.GetLocation() ) -- cgit