cui/source/customize/CustomNotebookbarGenerator.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 64767667a1bdf67d35ad3eeb73fe2202df6425c1
Author:     Simon Chenery <[email protected]>
AuthorDate: Sat Oct 4 20:21:33 2025 +0200
Commit:     Julien Nabet <[email protected]>
CommitDate: Sun Oct 12 18:03:59 2025 +0200

    tdf#145614 Convert #define aUIPropertiesCount to constexpr
    
    Change-Id: I28f8dd155fffacbceb44b52a2ffe921c3412518e
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/191861
    Tested-by: Jenkins
    Reviewed-by: Julien Nabet <[email protected]>

diff --git a/cui/source/customize/CustomNotebookbarGenerator.cxx 
b/cui/source/customize/CustomNotebookbarGenerator.cxx
index ac2c18d5c238..45e9ac02bd5c 100644
--- a/cui/source/customize/CustomNotebookbarGenerator.cxx
+++ b/cui/source/customize/CustomNotebookbarGenerator.cxx
@@ -31,8 +31,6 @@
 #include <libxml/parser.h>
 #include <o3tl/string_view.hxx>
 
-#define aUIPropertiesCount 3
-
 using namespace css;
 
 CustomNotebookbarGenerator::CustomNotebookbarGenerator() {}
@@ -191,6 +189,7 @@ void 
CustomNotebookbarGenerator::modifyCustomizedUIFile(const Sequence<OUString>
     const OString sCustomizedUIPath = getSystemPath(sUIPath);
     for (auto const& aValue : sUIItemProperties)
     {
+        constexpr sal_Int32 aUIPropertiesCount = 3;
         std::vector<OString> aProperties(aUIPropertiesCount);
         for (sal_Int32 aIndex = 0; aIndex < aUIPropertiesCount; aIndex++)
         {

Reply via email to