sd/source/ui/view/zoomlist.cxx | 3 +-- vcl/source/app/scheduler.cxx | 1 - 2 files changed, 1 insertion(+), 3 deletions(-)
New commits: commit 748fef9fbd9a2818c58bcb149092b3960448ea14 Author: Simon Chenery <simon_chen...@yahoo.com> AuthorDate: Wed Feb 19 23:14:35 2025 +0100 Commit: Hossein <hoss...@libreoffice.org> CommitDate: Thu Feb 20 09:34:26 2025 +0100 tdf#145614 Convert #define MAX_ENTRIES to constexpr Change-Id: Ibe561bcd4376e98528d1ef9f3e8ed708c21816cc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181925 Reviewed-by: Hossein <hoss...@libreoffice.org> Tested-by: Jenkins diff --git a/sd/source/ui/view/zoomlist.cxx b/sd/source/ui/view/zoomlist.cxx index 86a3de63bcaf..5ea45428ef20 100644 --- a/sd/source/ui/view/zoomlist.cxx +++ b/sd/source/ui/view/zoomlist.cxx @@ -27,8 +27,6 @@ namespace sd { -#define MAX_ENTRIES 10 - ZoomList::ZoomList(ViewShell* pViewShell) : mpViewShell(pViewShell) , mnCurPos(0) @@ -38,6 +36,7 @@ ZoomList::ZoomList(ViewShell* pViewShell) void ZoomList::InsertZoomRect(const ::tools::Rectangle& rRect) { size_t nRectCount = maRectangles.size(); + constexpr size_t MAX_ENTRIES = 10; if (nRectCount >= MAX_ENTRIES) maRectangles.erase(maRectangles.begin()); commit 36c5ef2d8b50aa7a5cbe55d68c37ed26a73e8498 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Wed Feb 19 11:34:47 2025 +0100 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Thu Feb 20 09:34:16 2025 +0100 vcl: remove unused include Mostly just to test CI with a change. Change-Id: Ia9a6d81bf94c36105936b612d7438ab2373ea715 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181928 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Jenkins diff --git a/vcl/source/app/scheduler.cxx b/vcl/source/app/scheduler.cxx index 2dcc14fe1988..4ca7d544f13a 100644 --- a/vcl/source/app/scheduler.cxx +++ b/vcl/source/app/scheduler.cxx @@ -41,7 +41,6 @@ #include <salinst.hxx> #include <comphelper/emscriptenthreading.hxx> #include <comphelper/profilezone.hxx> -#include <tools/json_writer.hxx> #include <schedulerimpl.hxx> namespace {