diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-18 11:34:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-19 09:05:58 +0200 |
commit | cdbe8a8700d5460e41d80b00310c6ff8977bc492 (patch) | |
tree | fb8f92ea13ccffad72894770ff75c8e8abc2a6c7 /svx | |
parent | 618baf4c5b40f19be6e47e1384fbc7a6b7610416 (diff) |
loplugin:constantparam
and tweak the plugin to handle a crash seen with clang-9
Change-Id: Ie1ccf80c16a20dbca58e5bd081af13f75cf5ac8f
Reviewed-on: https://gerrit.libreoffice.org/75850
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/tbxctrls/tbcontrl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx index 43650c1f1d51..88d97fb2a1a3 100644 --- a/svx/source/tbxctrls/tbcontrl.cxx +++ b/svx/source/tbxctrls/tbcontrl.cxx @@ -295,7 +295,7 @@ namespace typedef Color (*ColorFunc)(Color); typedef Color (*ColorDistFunc)(Color, Color); - LineListBox( vcl::Window* pParent, WinBits nWinStyle = WB_BORDER ); + LineListBox( vcl::Window* pParent ); virtual ~LineListBox() override; virtual void dispose() override; @@ -442,8 +442,8 @@ namespace rBmp = aVirDev->GetBitmapEx( Point(), Size( aSize.Width(), n1+nDist+n2 ) ); } - LineListBox::LineListBox( vcl::Window* pParent, WinBits nWinStyle ) : - ListBox( pParent, nWinStyle ), + LineListBox::LineListBox( vcl::Window* pParent ) : + ListBox( pParent, WB_BORDER ), m_nWidth( 5 ), m_sNone( ), aVirDev( VclPtr<VirtualDevice>::Create() ), |