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:
Simon Chenery
2026-01-23 20:40:36 +01:00
committed by Hossein
parent f268a212e7
commit 6ed65706fa
+1 -2
View File
@@ -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 )
{