refs #776 Use pointers instead of references for members of CCached,

to avoid subtle undefined behaviour with the placement-new trick (§3.8¶8.3).
This commit is contained in:
Mathew Sutcliffe
2016-10-28 03:08:48 +01:00
committed by Klaus Basan
parent de7821ff86
commit 0fd0ce05f0
2 changed files with 21 additions and 21 deletions

View File

@@ -369,7 +369,7 @@ namespace BlackMisc
//! If the value is currently being loaded, wait for it to finish loading, and call the notification slot, if any.
void synchronize()
{
auto *queue = this->m_page.template findChild<Private::CDataPageQueue *>();
auto *queue = this->m_page->template findChild<Private::CDataPageQueue *>();
Q_ASSERT(queue);
admit();
CDataCache::instance()->synchronize(this->getKey());