From 0e09529f2332db8147114677683a044440133e32 Mon Sep 17 00:00:00 2001 From: Tres Finocchiaro Date: Mon, 3 Feb 2025 00:44:58 -0500 Subject: [PATCH] const int & --> constexpr int --- include/SharedMemory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SharedMemory.h b/include/SharedMemory.h index 1ecf86be78c..0dd7c133801 100644 --- a/include/SharedMemory.h +++ b/include/SharedMemory.h @@ -77,9 +77,9 @@ class SharedMemoryData static inline std::string createKey() { #if defined(LMMS_BUILD_APPLE) || defined(LMMS_BUILD_FREEBSD) || defined(LMMS_BUILD_OPENBSD) - const int &length = 30; // PSHMNAMLEN=31 + constexpr int length = 30; // PSHMNAMLEN=31 #else - const int &length = 32; // mimic UUID + constexpr int length = 32; // mimic UUID #endif std::string key; std::random_device rd;