diff --git a/src/blackmisc/valuecache.h b/src/blackmisc/valuecache.h index b2c08fc5c..7db7140be 100644 --- a/src/blackmisc/valuecache.h +++ b/src/blackmisc/valuecache.h @@ -41,6 +41,7 @@ #include #include #include +#include #include #include #include @@ -446,8 +447,8 @@ namespace BlackMisc connectOnce(m_page->parent(), &QObject::objectNameChanged, [function](const QString &) { function(); }); } - Private::CValuePage *m_page = (qFatal("Must be initialized"), nullptr); //!< \private - Private::CValuePage::Element *m_element = (qFatal("Must be initialized"), nullptr); //!< \private + Private::CValuePage *m_page = (throw std::logic_error("Uninitialized member"), nullptr); //!< \private + Private::CValuePage::Element *m_element = (throw std::logic_error("Uninitialized member"), nullptr); //!< \private }; /*!