mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 22:00:35 +01:00
Fix compiler warning
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user