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 /sfx2 | |
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 'sfx2')
-rw-r--r-- | sfx2/source/control/templatedefaultview.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/control/templatelocalview.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/control/templatedefaultview.cxx b/sfx2/source/control/templatedefaultview.cxx index 23533d532bc8..9bc4b39798a1 100644 --- a/sfx2/source/control/templatedefaultview.cxx +++ b/sfx2/source/control/templatedefaultview.cxx @@ -29,7 +29,7 @@ static constexpr int gnItemPadding(5); //TODO:: Change padding to 10. It looks r static constexpr long gnTextHeight = 30; TemplateDefaultView::TemplateDefaultView( Window* pParent) - : TemplateLocalView(pParent, WB_TABSTOP) + : TemplateLocalView(pParent) { tools::Rectangle aScreen = Application::GetScreenPosSizePixel(Application::GetDisplayBuiltInScreen()); mnItemMaxSize = std::min(aScreen.GetWidth(),aScreen.GetHeight()) > 800 ? 256 : 192; diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx index 019eb06d3558..982811f93fc4 100644 --- a/sfx2/source/control/templatelocalview.cxx +++ b/sfx2/source/control/templatelocalview.cxx @@ -84,8 +84,8 @@ bool ViewFilter_Application::operator () (const ThumbnailViewItem *pItem) return true; } -TemplateLocalView::TemplateLocalView ( vcl::Window* pParent, WinBits nWinStyle) - : ThumbnailView(pParent, nWinStyle), +TemplateLocalView::TemplateLocalView ( vcl::Window* pParent) + : ThumbnailView(pParent, WB_TABSTOP), mnCurRegionId(0), maSelectedItem(nullptr), mnThumbnailWidth(TEMPLATE_THUMBNAIL_MAX_WIDTH), |