diff options
author | Akshay Kumar Dubey <akshaymani513@gmail.com> | 2025-01-15 00:42:25 +0530 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2025-01-21 08:56:00 +0100 |
commit | 3e706aa31d7d1a521710dfa544316e5d35bdf5f0 (patch) | |
tree | 73410a7dee482634167045cdc7881da5c69bc30a /bridges | |
parent | 9dc1faa1428cdf3e74be002bff51a1ce4823ff66 (diff) |
tdf#145614 Convert #define to constexpr
Change-Id: I0bdbb662b807c6ffc9030c4c695e5022949e172f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180254
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'bridges')
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_loongarch64/abi.hxx | 4 | ||||
-rw-r--r-- | bridges/source/cpp_uno/gcc3_linux_riscv64/share.hxx | 4 | ||||
-rw-r--r-- | bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/bridges/source/cpp_uno/gcc3_linux_loongarch64/abi.hxx b/bridges/source/cpp_uno/gcc3_linux_loongarch64/abi.hxx index 1fe9e9b58866..c5cd03558cc7 100644 --- a/bridges/source/cpp_uno/gcc3_linux_loongarch64/abi.hxx +++ b/bridges/source/cpp_uno/gcc3_linux_loongarch64/abi.hxx @@ -21,8 +21,8 @@ #include <typelib/typedescription.hxx> -#define MAX_GP_REGS 8 -#define MAX_FP_REGS 8 +constexpr auto MAX_GP_REGS = 8; +constexpr auto MAX_FP_REGS = 8; namespace loongarch64 { diff --git a/bridges/source/cpp_uno/gcc3_linux_riscv64/share.hxx b/bridges/source/cpp_uno/gcc3_linux_riscv64/share.hxx index 331ed789e39f..d04d4030bc98 100644 --- a/bridges/source/cpp_uno/gcc3_linux_riscv64/share.hxx +++ b/bridges/source/cpp_uno/gcc3_linux_riscv64/share.hxx @@ -24,8 +24,8 @@ #include <exception> #include <cstddef> -#define MAX_GP_REGS (8) -#define MAX_FP_REGS (8) +constexpr auto MAX_GP_REGS = 8; +constexpr auto MAX_FP_REGS = 8; namespace CPPU_CURRENT_NAMESPACE { diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx index 8f6ca30957ed..7e7f456d9c2d 100644 --- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx +++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx @@ -81,7 +81,7 @@ enum x86_64_reg_class } -#define MAX_CLASSES 4 +constexpr auto MAX_CLASSES = 4; /* x86-64 register passing implementation. See x86-64 ABI for details. Goal of this code is to classify each 8bytes of incoming argument by the register |