Skip to content

Commit

Permalink
QBasicMutex: mark the bootstrap constructor constexpr
Browse files Browse the repository at this point in the history
QBasicMutex and QMutex are the same in bootstrap mode.

Change-Id: Icaa86fc7b54d4b368c0efffd14eed63343ddb51b
Reviewed-by: Olivier Goffart (Woboq GmbH) <[email protected]>
  • Loading branch information
thiagomacieira committed Oct 19, 2017
1 parent ca5f5de commit 02dc39f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/thread/qmutex.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class Q_CORE_EXPORT QMutex
public:
enum RecursionMode { NonRecursive, Recursive };

inline explicit QMutex(RecursionMode mode = NonRecursive) Q_DECL_NOTHROW { Q_UNUSED(mode); }
inline Q_DECL_CONSTEXPR explicit QMutex(RecursionMode = NonRecursive) Q_DECL_NOTHROW { }

inline void lock() Q_DECL_NOTHROW {}
inline bool tryLock(int timeout = 0) Q_DECL_NOTHROW { Q_UNUSED(timeout); return true; }
Expand Down

0 comments on commit 02dc39f

Please sign in to comment.