diff --git a/platform/qt/src/mbgl/thread_local.cpp b/platform/qt/src/mbgl/thread_local.cpp index a4277f041..60b1d0389 100644 --- a/platform/qt/src/mbgl/thread_local.cpp +++ b/platform/qt/src/mbgl/thread_local.cpp @@ -16,7 +16,7 @@ using StorageType = QThreadStorage>; ThreadLocalBase::ThreadLocalBase() { static_assert(sizeof(storage) >= sizeof(StorageType), "storage is too small"); static_assert(alignof(decltype(storage)) % alignof(StorageType) == 0, "storage is incorrectly aligned"); - new (&reinterpret_cast(storage)) QThreadStorage(); + new (&reinterpret_cast(storage)) QThreadStorage>(); } ThreadLocalBase::~ThreadLocalBase() {