From 572681bfc7bb141c9f16694df05a505e9d9f1a88 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 25 Jan 2020 12:11:26 +0100 Subject: 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 --- reportdesign/source/ui/inc/CondFormat.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'reportdesign/source') diff --git a/reportdesign/source/ui/inc/CondFormat.hxx b/reportdesign/source/ui/inc/CondFormat.hxx index 6e87acb9857d..9b648be10c9e 100644 --- a/reportdesign/source/ui/inc/CondFormat.hxx +++ b/reportdesign/source/ui/inc/CondFormat.hxx @@ -28,7 +28,7 @@ namespace rptui { - #define MAX_CONDITIONS size_t(3) + constexpr size_t MAX_CONDITIONS = 3; class OReportController; class Condition; -- cgit