dbaccess/source/ui/misc/WCopyTable.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 6ed65706fa4e3d18aa0ea52126792bddae576576
Author:     Simon Chenery <[email protected]>
AuthorDate: Thu Dec 11 21:52:56 2025 +0100
Commit:     Hossein <[email protected]>
CommitDate: Fri Jan 23 20:40:36 2026 +0100

    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 <[email protected]>
    Tested-by: Jenkins

diff --git a/dbaccess/source/ui/misc/WCopyTable.cxx 
b/dbaccess/source/ui/misc/WCopyTable.cxx
index c8a7e023c366..0226cc9b4bfb 100644
--- a/dbaccess/source/ui/misc/WCopyTable.cxx
+++ b/dbaccess/source/ui/misc/WCopyTable.cxx
@@ -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 )
     {

Reply via email to