From df809481d4fcee0ac51cf056161ee4953ade44bd Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 12 Sep 2019 16:17:30 +0100 Subject: inherit from one class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia3cb14429a42e445c14cecc20728d59d985f4b5d Reviewed-on: https://gerrit.libreoffice.org/78837 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- svtools/source/uno/wizard/wizardshell.cxx | 2 ++ svtools/source/uno/wizard/wizardshell.hxx | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'svtools') diff --git a/svtools/source/uno/wizard/wizardshell.cxx b/svtools/source/uno/wizard/wizardshell.cxx index 539dd7cea2d5..4b8b6e9052a9 100644 --- a/svtools/source/uno/wizard/wizardshell.cxx +++ b/svtools/source/uno/wizard/wizardshell.cxx @@ -25,6 +25,8 @@ #include +using vcl::RoadmapWizardTypes::WizardPath; + namespace svt { namespace uno { diff --git a/svtools/source/uno/wizard/wizardshell.hxx b/svtools/source/uno/wizard/wizardshell.hxx index 320d31e6330a..6217f5822770 100644 --- a/svtools/source/uno/wizard/wizardshell.hxx +++ b/svtools/source/uno/wizard/wizardshell.hxx @@ -26,6 +26,8 @@ #include #include +using vcl::WizardTypes::WizardState; +using vcl::WizardTypes::CommitPageReason; namespace svt { namespace uno { @@ -76,7 +78,7 @@ namespace svt { namespace uno void activatePath( const sal_Int16 i_nPathID, const bool i_bFinal ) { - WizardShell_Base::activatePath( PathId( i_nPathID ), i_bFinal ); + WizardShell_Base::activatePath( vcl::RoadmapWizardTypes::PathId( i_nPathID ), i_bFinal ); } css::uno::Reference< css::ui::dialogs::XWizardPage > @@ -95,14 +97,14 @@ namespace svt { namespace uno } private: - sal_Int16 impl_stateToPageId( const WizardTypes::WizardState i_nState ) const + sal_Int16 impl_stateToPageId( const WizardState i_nState ) const { return static_cast< sal_Int16 >( i_nState + m_nFirstPageID ); } WizardState impl_pageIdToState( const sal_Int16 i_nPageId ) const { - return static_cast< WizardState >( i_nPageId - m_nFirstPageID ); + return static_cast(i_nPageId - m_nFirstPageID); } PWizardPageController impl_getController( TabPage* i_pPage ) const; -- cgit