diff --git a/include/orm/utils/thread.hpp b/include/orm/utils/thread.hpp index e7b036c6b..3b57f705f 100644 --- a/include/orm/utils/thread.hpp +++ b/include/orm/utils/thread.hpp @@ -29,10 +29,11 @@ namespace Orm::Utils /*! Set thread name for debugger, -1 for a current thread. */ [[maybe_unused]] static void nameThreadForDebugging(const QString &threadName, - quint64 threadId = -1); + quint64 threadId = static_cast(-1)); // -1 here is correct even it's quint64, it will be max. quint64 value, static_cast<> is needed because of this /*! Set thread name for debugger, -1 for a current thread. */ [[maybe_unused]] - static void nameThreadForDebugging(const char *threadName, quint64 threadId = -1); + static void nameThreadForDebugging(const char *threadName, + quint64 threadId = static_cast(-1)); // -1 here is correct even it's quint64, it will be max. quint64 value, static_cast<> is needed because of this }; } // namespace Orm::Utils