cui/source/dialogs/AdditionsDialog.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 30829b861754fab87d1e2ae437f61c21bf5fd261 Author: Méven Car <[email protected]> AuthorDate: Thu Nov 13 18:22:00 2025 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Nov 14 09:22:57 2025 +0100 AdditonsDialog: rename macro value PAGE_SIZE to avoid conflict PAGE_SIZE is a common Linux macro, this can cause warnings during compilation. Rename PAGE_SIZE to more specific MAX_ITEMS_PER_PAGE. Change-Id: If401a84891a65e75541fb44d8ed8b7125ff9e425 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193979 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193992 Tested-by: Jenkins diff --git a/cui/source/dialogs/AdditionsDialog.cxx b/cui/source/dialogs/AdditionsDialog.cxx index 8f143ea98172..4f9c9544b4ca 100644 --- a/cui/source/dialogs/AdditionsDialog.cxx +++ b/cui/source/dialogs/AdditionsDialog.cxx @@ -55,7 +55,7 @@ #include <bitmaps.hlst> -#define PAGE_SIZE 30 +#define MAX_ITEMS_PER_PAGE 30 using namespace css; using ::com::sun::star::uno::Reference; @@ -447,7 +447,7 @@ AdditionsDialog::AdditionsDialog(weld::Window* pParent, const OUString& sAdditio m_xButtonShowMore->connect_clicked(LINK(this, AdditionsDialog, ShowMoreHdl)); m_xButtonClose->connect_clicked(LINK(this, AdditionsDialog, CloseButtonHdl)); - m_nMaxItemCount = PAGE_SIZE; // Dialog initialization item count + m_nMaxItemCount = MAX_ITEMS_PER_PAGE; // Dialog initialization item count m_nCurrentListItemCount = 0; // First, there is no item on the list. OUString sTag = sAdditionsTag; @@ -582,7 +582,7 @@ void AdditionsDialog::RefreshUI() m_pSearchThread->StopExecution(); ClearList(); m_nCurrentListItemCount = 0; - m_nMaxItemCount = PAGE_SIZE; + m_nMaxItemCount = MAX_ITEMS_PER_PAGE; m_pSearchThread = new SearchAndParseThread(this, false); m_pSearchThread->launch(); } @@ -740,7 +740,7 @@ IMPL_LINK_NOARG(AdditionsDialog, CloseButtonHdl, weld::Button&, void) IMPL_LINK_NOARG(AdditionsDialog, ShowMoreHdl, weld::Button&, void) { m_xButtonShowMore->set_visible(false); - m_nMaxItemCount += PAGE_SIZE; + m_nMaxItemCount += MAX_ITEMS_PER_PAGE; if (m_pSearchThread.is()) m_pSearchThread->StopExecution(); m_pSearchThread = new SearchAndParseThread(this, false);
