summaryrefslogtreecommitdiffstats
path: root/src/corelib/thread
diff options
context:
space:
mode:
authorNodir Temirkhodjaev <nodir.temir@gmail.com>2021-06-12 10:20:33 +0300
committerNodir Temirkhodjaev <nodir.temir@gmail.com>2021-06-14 12:43:02 +0300
commit7dd4c937489451e72a671784dcd353e4c5bc16df (patch)
tree14f1dc728e81f2239277e2293a6d1551e04ca0c8 /src/corelib/thread
parent20a31b1a39931e06d69e932d2e6890f7c375e20b (diff)
QException: Fix no-exception build
qtbase\src\corelib\thread\qfutureinterface_p.h(180): error C2039: 'setException': is not a member of 'QtPrivate::ExceptionStore' qtbase\src\corelib\thread\qexception.h(109): note: see declaration of 'QtPrivate::ExceptionStore' Change-Id: Id746b87af3f88d91c473f6a3d986dc0f022dfa2f Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Diffstat (limited to 'src/corelib/thread')
-rw-r--r--src/corelib/thread/qfutureinterface_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/thread/qfutureinterface_p.h b/src/corelib/thread/qfutureinterface_p.h
index 3a4dd076d8..c92f8e2230 100644
--- a/src/corelib/thread/qfutureinterface_p.h
+++ b/src/corelib/thread/qfutureinterface_p.h
@@ -173,12 +173,14 @@ public:
QtPrivate::ResultStoreBase m_results;
QtPrivate::ExceptionStore m_exceptionStore;
+#ifndef QT_NO_EXCEPTIONS
void setException(const std::exception_ptr &e)
{
m_results.~ResultStoreBase();
new (&m_exceptionStore) QtPrivate::ExceptionStore();
m_exceptionStore.setException(e);
}
+#endif
~Data() { }
};