diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-04 12:16:17 +0200 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@canonical.com> | 2015-10-20 11:35:31 +0000 |
commit | 56e6f0da839c53867947d1e06f0e733022df7d0e (patch) | |
tree | bedad09b04f92578b067b62d51f160be9a389dd1 /sw | |
parent | 9e7e264bdf9459487037345917aea7b35de7e7a0 (diff) |
new loplugin: badvectorinit
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 <bjoern.michaelsen@canonical.com>
Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/paintfrm.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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() ) |