From 1e49e33c26950b606714c0dafb26cbcb2aeb3877 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 12 Sep 2016 13:10:16 +0200 Subject: loplugin:constantparam in chart2..connectivity Change-Id: Ic9e1bd36a11c7148fa7595a2b6c6de9bd7a8653d Reviewed-on: https://gerrit.libreoffice.org/28834 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- cui/source/inc/iconcdlg.hxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cui/source/inc/iconcdlg.hxx') diff --git a/cui/source/inc/iconcdlg.hxx b/cui/source/inc/iconcdlg.hxx index 3cc6f7c5b568..6f9eda810afd 100644 --- a/cui/source/inc/iconcdlg.hxx +++ b/cui/source/inc/iconcdlg.hxx @@ -39,22 +39,19 @@ class IconChoicePage; // Create-Function typedef VclPtr (*CreatePage)(vcl::Window *pParent, IconChoiceDialog* pDlg, const SfxItemSet &rAttrSet); -typedef const sal_uInt16* (*GetPageRanges)(); // gives international Which-value /// Data-structure for pages in dialog struct IconChoicePageData { sal_uInt16 nId; CreatePage fnCreatePage; ///< pointer to the factory - GetPageRanges fnGetRanges; ///< pointer to the ranges-function VclPtr pPage; ///< the TabPage itself bool bRefresh; ///< Flag: page has to be newly initialized // constructor - IconChoicePageData( sal_uInt16 Id, CreatePage fnPage, GetPageRanges fnRanges ) + IconChoicePageData( sal_uInt16 Id, CreatePage fnPage ) : nId ( Id ), fnCreatePage ( fnPage ), - fnGetRanges ( fnRanges ), pPage ( nullptr ), bRefresh ( false ) {} @@ -154,8 +151,7 @@ protected: public: // the IconChoiceCtrl's could also be set in the Ctor - IconChoiceDialog ( vcl::Window* pParent, const OUString& rID, const OUString& rUIXMLDescription, - const SfxItemSet * pItemSet = nullptr ); + IconChoiceDialog ( vcl::Window* pParent, const OUString& rID, const OUString& rUIXMLDescription ); virtual ~IconChoiceDialog () override; virtual void dispose() override; -- cgit