Adds initial intermediate qt6 porting state
This commit is contained in:
11247 files changed
+1891537
No files matched your search
@@ -0,0 +1,24 @@
|
||||
|
||||
|
||||
|
||||
#include "sql_query_janitor.h"
|
||||
#include "nsqlquery.h"
|
||||
#include <QtGlobal>
|
||||
|
||||
|
||||
SqlQueryJanitor::SqlQueryJanitor(NSqlQuery *query)
|
||||
: m_query(query)
|
||||
{
|
||||
Q_ASSERT(m_query);
|
||||
Q_ASSERT(!m_query->isActive());
|
||||
}
|
||||
|
||||
SqlQueryJanitor::SqlQueryJanitor(const std::unique_ptr<NSqlQuery> &query)
|
||||
: SqlQueryJanitor(query.get())
|
||||
{
|
||||
}
|
||||
|
||||
SqlQueryJanitor::~SqlQueryJanitor()
|
||||
{
|
||||
m_query->finish();
|
||||
}
|
||||
Reference in new issue
Block a user