diff options
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/dbgui/validate.cxx | 8 | ||||
-rw-r--r-- | sc/source/ui/inc/validate.hxx | 4 |
2 files changed, 5 insertions, 7 deletions
diff --git a/sc/source/ui/dbgui/validate.cxx b/sc/source/ui/dbgui/validate.cxx index 0946c1163f11..a3fca1d8822f 100644 --- a/sc/source/ui/dbgui/validate.cxx +++ b/sc/source/ui/dbgui/validate.cxx @@ -75,12 +75,10 @@ namespace ValidListType = css::sheet::TableValidationVisibility; -const sal_uInt16 ScTPValidationValue::pValueRanges[] = -{ +const WhichRangesContainer ScTPValidationValue::pValueRanges(svl::Items< FID_VALID_LISTTYPE, FID_VALID_LISTTYPE, - FID_VALID_MODE, FID_VALID_ERRTEXT, - 0 -}; + FID_VALID_MODE, FID_VALID_ERRTEXT +>::value); ScValidationDlg::ScValidationDlg(weld::Window* pParent, const SfxItemSet* pArgSet, ScTabViewShell *pTabViewSh) diff --git a/sc/source/ui/inc/validate.hxx b/sc/source/ui/inc/validate.hxx index 495a6ea5ad72..6117e87b7984 100644 --- a/sc/source/ui/inc/validate.hxx +++ b/sc/source/ui/inc/validate.hxx @@ -75,13 +75,13 @@ class ScValidationDlg; /** The tab page "Criteria" from the Validation dialog. */ class ScTPValidationValue : public ScRefHandlerCaller, public SfxTabPage { - static const sal_uInt16 pValueRanges[]; + static const WhichRangesContainer pValueRanges; public: explicit ScTPValidationValue(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rArgSet); static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rArgSet ); virtual ~ScTPValidationValue() override; - static const sal_uInt16* GetRanges() { return pValueRanges; } + static const WhichRangesContainer& GetRanges() { return pValueRanges; } virtual bool FillItemSet( SfxItemSet* rArgSet ) override; virtual void Reset( const SfxItemSet* rArgSet ) override; |