Kaydet (Commit) 99d4b08d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

WizardDialog::DeactivatePage return type wants to be bool

Change-Id: Ib44006e339a4e1ee9b5c9201e48861fceef865fd
üst 56a2bc14
......@@ -324,7 +324,7 @@ namespace dbaui
virtual ~OCopyTableWizard();
virtual long DeactivatePage() SAL_OVERRIDE;
virtual bool DeactivatePage() SAL_OVERRIDE;
OKButton& GetOKButton() { return static_cast<OKButton&>(*m_pbFinish); }
Wizard_Button_Style GetPressedButton() const { return m_ePressed; }
void EnableButton(Wizard_Button_Style eStyle, bool bEnable);
......
......@@ -834,7 +834,7 @@ bool OCopyTableWizard::CheckColumns(sal_Int32& _rnBreakPos)
IMPL_LINK_NOARG(OCopyTableWizard, ImplOKHdl)
{
m_ePressed = WIZARD_FINISH;
bool bFinish = DeactivatePage() != 0;
bool bFinish = DeactivatePage();
if(bFinish)
{
......@@ -989,10 +989,10 @@ void OCopyTableWizard::EnableButton(Wizard_Button_Style eStyle, bool bEnable)
}
long OCopyTableWizard::DeactivatePage()
bool OCopyTableWizard::DeactivatePage()
{
OWizardPage* pPage = static_cast<OWizardPage*>(GetPage(GetCurLevel()));
return pPage ? pPage->LeavePage() : sal_False;
return pPage && pPage->LeavePage();
}
void OCopyTableWizard::AddWizardPage(OWizardPage* pPage)
......
......@@ -200,7 +200,7 @@ namespace svt
protected:
// WizardDialog overridables
virtual void ActivatePage() SAL_OVERRIDE;
virtual long DeactivatePage() SAL_OVERRIDE;
virtual bool DeactivatePage() SAL_OVERRIDE;
// our own overridables
......
......@@ -248,7 +248,7 @@ public:
virtual bool Notify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
virtual void ActivatePage();
virtual long DeactivatePage();
virtual bool DeactivatePage();
virtual void queue_resize(StateChangedType eReason = StateChangedType::LAYOUT) SAL_OVERRIDE;
......
......@@ -270,12 +270,12 @@ namespace svt
}
long OWizardMachine::DeactivatePage()
bool OWizardMachine::DeactivatePage()
{
WizardState nCurrentState = getCurrentState();
if (!leaveState(nCurrentState) || !WizardDialog::DeactivatePage())
return sal_False;
return sal_True;
return false;
return true;
}
......
......@@ -480,12 +480,12 @@ void WizardDialog::ActivatePage()
long WizardDialog::DeactivatePage()
bool WizardDialog::DeactivatePage()
{
if ( maDeactivateHdl.IsSet() )
return maDeactivateHdl.Call( this );
else
return sal_True;
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment