diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-01-25 12:11:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-01-25 13:04:17 +0100 |
commit | 572681bfc7bb141c9f16694df05a505e9d9f1a88 (patch) | |
tree | 2e3af2a5a6f12fe788817227534028195fed7555 /store/source | |
parent | 8eeac03bcafac6b2a4984ad70d0694cad01d5615 (diff) |
Change some #define to constexpr
...plus loplugin:unnecessaryparen fallout in sw/source/uibase/docvw/edtwin.cxx.
Each of the files contained at least one #define that would have caused warnings
with upcoming loplugin:unsignedcompare. For consistency, I changed all #defines
in those files (using a variable of a specific type if the original #define used
a cast to that type, otherwise using 'auto').
Change-Id: I66f71b2d83394c9dc6952ae19df774cdd4d0b76a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87374
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'store/source')
-rw-r--r-- | store/source/storbios.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/store/source/storbios.cxx b/store/source/storbios.cxx index a98f4e9a35a3..091d819824b8 100644 --- a/store/source/storbios.cxx +++ b/store/source/storbios.cxx @@ -41,7 +41,7 @@ using namespace store; * OStoreSuperBlock. * *======================================================================*/ -#define STORE_MAGIC_SUPERBLOCK sal_uInt32(0x484D5343) +constexpr sal_uInt32 STORE_MAGIC_SUPERBLOCK = 0x484D5343; namespace { |