ladybird/Userland/Libraries/LibGUI/Wizards/AbstractWizardPage.cpp
Lenny Maiorani fe3b846ac8 Libraries: Use default constructors/destructors in LibGUI
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules

"The compiler is more likely to get the default semantics right and
you cannot implement these functions better than the compiler."
2022-03-12 14:44:43 -08:00

36 lines
621 B
C++

/*
* Copyright (c) 2021, Nick Vella <nick@nxk.io>
* Copyright (c) 2022, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibGUI/Wizards/AbstractWizardPage.h>
namespace GUI {
RefPtr<AbstractWizardPage> AbstractWizardPage::next_page()
{
if (on_next_page)
return on_next_page();
return nullptr;
}
bool AbstractWizardPage::can_go_next()
{
return !!on_next_page;
}
void AbstractWizardPage::page_enter()
{
if (on_page_enter)
return on_page_enter();
}
void AbstractWizardPage::page_leave()
{
if (on_page_leave)
return on_page_leave();
}
}