xmlhelp/source/cxxhelp/provider/contentcaps.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
New commits: commit 628c3f7b5ab53d4974cafc5083b0112f2d49b0c9 Author: Simon Chenery <[email protected]> AuthorDate: Sat Nov 29 21:28:19 2025 +0100 Commit: Hossein <[email protected]> CommitDate: Sat Dec 13 10:06:39 2025 +0100 tdf#145614 avoid #define COMMAND_COUNT Change-Id: I0782f734dee6e34acd48f1b569590da9e9f1d78f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194825 Tested-by: Jenkins Reviewed-by: Hossein <[email protected]> diff --git a/xmlhelp/source/cxxhelp/provider/contentcaps.cxx b/xmlhelp/source/cxxhelp/provider/contentcaps.cxx index 840dd043db37..f66205db71a0 100644 --- a/xmlhelp/source/cxxhelp/provider/contentcaps.cxx +++ b/xmlhelp/source/cxxhelp/provider/contentcaps.cxx @@ -160,8 +160,6 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands( { // Supported commands -#define COMMAND_COUNT 5 - static const ucb::CommandInfo aCommandInfoTable[] = { // Required commands @@ -193,7 +191,7 @@ uno::Sequence< ucb::CommandInfo > Content::getCommands( }; return uno::Sequence< ucb::CommandInfo >( - aCommandInfoTable, COMMAND_COUNT ); + aCommandInfoTable, std::size(aCommandInfoTable) ); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
