From eb3c5210383167acd4182c3decd2e0b29cf612d5 Mon Sep 17 00:00:00 2001 From: Julian Hinxlage Date: Tue, 12 Nov 2019 14:29:33 +0100 Subject: [PATCH] ~ fixed clang-tidy define errors --- src/SharedMemoryAccess.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SharedMemoryAccess.cpp b/src/SharedMemoryAccess.cpp index bdbd9b6..e410c3f 100644 --- a/src/SharedMemoryAccess.cpp +++ b/src/SharedMemoryAccess.cpp @@ -15,10 +15,10 @@ #include "SharedMemoryAccess.h" /* header is important for the shmID. name could be different. maybe not needed cause: (shmget(memory_access_key, NULL, 0)) */ #include "internal.h" -#define PERM 0666 /* access rights */ -#define LOCK (-1) -#define UNLOCK (1) -#define SEM_KEY (123458L) +constexpr int PERM = 0666; /* access rights */ +constexpr int LOCK = -1; +constexpr int UNLOCK = 1; +constexpr int SEM_KEY = 123458L; //int memoryAccessKey; /* var type is int. but could be another type. */ //TODO: look after type in sharedmemory group int semId;