From 5a296d98f2d11af1005a41e422b790814cb35571 Mon Sep 17 00:00:00 2001 From: Darryl Pogue Date: Fri, 16 Feb 2024 19:57:48 -0800 Subject: [PATCH] Use using rather than define for Qt 5/6 compat Co-authored-by: dgelessus --- Sources/Tools/plNetLog/ChunkBuffer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Tools/plNetLog/ChunkBuffer.h b/Sources/Tools/plNetLog/ChunkBuffer.h index 13ed26cb46..06eae0266a 100644 --- a/Sources/Tools/plNetLog/ChunkBuffer.h +++ b/Sources/Tools/plNetLog/ChunkBuffer.h @@ -51,9 +51,9 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com #include #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) -#define Q_MUTEX_LOCKER_TYPE QMutexLocker +using Q_MUTEX_LOCKER_TYPE = QMutexLocker; #else -#define Q_MUTEX_LOCKER_TYPE QMutexLocker +using Q_MUTEX_LOCKER_TYPE = QMutexLocker; #endif class ChunkBuffer