Fix compiler warning

This commit is contained in:
Magnus Hellströmer
2025-02-16 00:11:28 +01:00
parent aa36bb35e1
commit 572d78912c

View File

@@ -253,10 +253,12 @@ bool projectDataBase::createDataBase()
return false;
}
m_data_base.exec("PRAGMA temp_store = MEMORY");
m_data_base.exec("PRAGMA journal_mode = MEMORY");
m_data_base.exec("PRAGMA synchronous = OFF");
QSqlQuery *temp_query = new QSqlQuery(m_data_base);
temp_query->exec("PRAGMA temp_store = MEMORY");
temp_query->exec("PRAGMA journal_mode = MEMORY");
temp_query->exec("PRAGMA synchronous = OFF");
delete temp_query;
QSqlQuery query_(m_data_base);
bool first_ = true;