aboutsummaryrefslogtreecommitdiffstats
path: root/Plugins/SqlEnterpriseFormatter/sqlenterpriseformatter.cpp
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-04-30 18:31:18 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2023-04-30 18:31:18 -0400
commit4de57f628bc74f00ba1885e91c84ea07c5405d8f (patch)
tree5d91900751e826d491ff1b2ebc571a787e84f864 /Plugins/SqlEnterpriseFormatter/sqlenterpriseformatter.cpp
parent74d881cefa9097e58e129e37b9c44d680d8c7dfe (diff)
parent3565aad630864ecdbe53fdaa501ea708555b3c7c (diff)
Update upstream source from tag 'upstream/3.4.4+dfsg'
Update to upstream version '3.4.4+dfsg' with Debian dir 482614bd23f0ef52dabc9803477204ad88e917ed
Diffstat (limited to 'Plugins/SqlEnterpriseFormatter/sqlenterpriseformatter.cpp')
-rw-r--r--Plugins/SqlEnterpriseFormatter/sqlenterpriseformatter.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/Plugins/SqlEnterpriseFormatter/sqlenterpriseformatter.cpp b/Plugins/SqlEnterpriseFormatter/sqlenterpriseformatter.cpp
index 62517c6..b33f286 100644
--- a/Plugins/SqlEnterpriseFormatter/sqlenterpriseformatter.cpp
+++ b/Plugins/SqlEnterpriseFormatter/sqlenterpriseformatter.cpp
@@ -36,7 +36,7 @@ QString SqlEnterpriseFormatter::format(SqliteQueryPtr query)
bool SqlEnterpriseFormatter::init()
{
- Q_INIT_RESOURCE(sqlenterpriseformatter);
+ SQLS_INIT_RESOURCE(sqlenterpriseformatter);
static_qstring(query1, "SELECT (2 + 4) AND (3 + 5), 4 NOT IN (SELECT t1.'some[_]name' + t2.[some'name2] FROM xyz t1 JOIN zxc t2 ON (t1.aaa = t2.aaa)) "
"FROM a, (SELECT id FROM table2);");
@@ -65,14 +65,13 @@ bool SqlEnterpriseFormatter::init()
void SqlEnterpriseFormatter::deinit()
{
- Q_CLEANUP_RESOURCE(sqlenterpriseformatter);
+ SQLS_CLEANUP_RESOURCE(sqlenterpriseformatter);
}
-
void SqlEnterpriseFormatter::updatePreview()
{
QStringList output;
- for (const SqliteQueryPtr& q : previewQueries)
+ for (SqliteQueryPtr& q : previewQueries)
output << format(q);
cfg.SqlEnterpriseFormatter.PreviewCode.set(output.join("\n\n"));