Skip to content

Commit

Permalink
Use using rather than define for Qt 5/6 compat
Browse files Browse the repository at this point in the history
Co-authored-by: dgelessus <[email protected]>
  • Loading branch information
dpogue and dgelessus authored Feb 17, 2024
1 parent a4ce5d0 commit 5a296d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Tools/plNetLog/ChunkBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ You can contact Cyan Worlds, Inc. by email [email protected]
#include <QMutex>

#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#define Q_MUTEX_LOCKER_TYPE QMutexLocker<QMutex>
using Q_MUTEX_LOCKER_TYPE = QMutexLocker<QMutex>;
#else
#define Q_MUTEX_LOCKER_TYPE QMutexLocker
using Q_MUTEX_LOCKER_TYPE = QMutexLocker;
#endif

class ChunkBuffer
Expand Down

0 comments on commit 5a296d9

Please sign in to comment.