mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Fix compiler warning
This commit is contained in:
@@ -253,9 +253,11 @@ bool projectDataBase::createDataBase()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_data_base.exec("PRAGMA temp_store = MEMORY");
|
QSqlQuery *temp_query = new QSqlQuery(m_data_base);
|
||||||
m_data_base.exec("PRAGMA journal_mode = MEMORY");
|
temp_query->exec("PRAGMA temp_store = MEMORY");
|
||||||
m_data_base.exec("PRAGMA synchronous = OFF");
|
temp_query->exec("PRAGMA journal_mode = MEMORY");
|
||||||
|
temp_query->exec("PRAGMA synchronous = OFF");
|
||||||
|
delete temp_query;
|
||||||
|
|
||||||
QSqlQuery query_(m_data_base);
|
QSqlQuery query_(m_data_base);
|
||||||
bool first_ = true;
|
bool first_ = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user