From 40035385c6ecee61de82b18ff5f823a1ef4db871 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 18 Jan 2022 14:33:06 +0000 Subject: Add constexpr to the initialisation of various const static fields. --- src/helperfuncs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helperfuncs.cpp') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index faeef34c7..5ca4d4b87 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -279,7 +279,7 @@ bool InspIRCd::IsSID(const std::string &str) * the ascii values 'm' and 'M' have the value '60', the indexes * for the ascii values 'D' and 'd' have a value of '86400', etc. */ -static const unsigned int duration_multi[] = +static constexpr unsigned int duration_multi[] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -- cgit v1.3.1-10-gc9f91