tdf#145614 Convert #define MAX_PAGES to constexpr
Declare MAX_PAGES as sal_uInt16, to match return type of GetCurLevel(). Change-Id: I458693b2ca34fea4ba8645e3f29b4ba330d9779c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195499 Reviewed-by: Hossein <hossein@libreoffice.org> Tested-by: Jenkins
This commit is contained in:
@@ -71,8 +71,6 @@ using namespace dbtools;
|
||||
|
||||
namespace CopyTableOperation = ::com::sun::star::sdb::application::CopyTableOperation;
|
||||
|
||||
#define MAX_PAGES 4 // max. number of pages, which are shown
|
||||
|
||||
namespace
|
||||
{
|
||||
void clearColumns(ODatabaseExport::TColumns& _rColumns, ODatabaseExport::TColumnVector& _rColumnsVec)
|
||||
@@ -687,6 +685,7 @@ IMPL_LINK_NOARG(OCopyTableWizard, ImplPrevHdl, weld::Button&, void)
|
||||
|
||||
IMPL_LINK_NOARG(OCopyTableWizard, ImplNextHdl, weld::Button&, void)
|
||||
{
|
||||
constexpr sal_uInt16 MAX_PAGES = 4; // max. number of pages, which are shown
|
||||
m_ePressed = WIZARD_NEXT;
|
||||
if ( GetCurLevel() < MAX_PAGES )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user