Skip to content

Commit

Permalink
const int & --> constexpr int
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Feb 3, 2025
1 parent 5009c5c commit 0e09529
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/SharedMemory.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0e09529

Please sign in to comment.