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;