From 457d9a5d77264ff36abfb7f231559afdcb2fe3b4 Mon Sep 17 00:00:00 2001 From: Hamed Masafi Date: Mon, 10 Aug 2020 17:41:48 +0430 Subject: [PATCH] test ci --- src/nut/query.h | 4 ++-- tests/auto/tst_basic/tst_basic.cpp | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/nut/query.h b/src/nut/query.h index d83fd16..661b253 100644 --- a/src/nut/query.h +++ b/src/nut/query.h @@ -196,12 +196,12 @@ Q_OUTOFLINE_TEMPLATE Query::Query(Database *database, AbstractTableSet *table } template -Q_OUTOFLINE_TEMPLATE Query::Query(const Query &other) { +Q_OUTOFLINE_TEMPLATE Query::Query(const Query &other) : AbstractQuery() { d = other.d->clone(); } template -Q_OUTOFLINE_TEMPLATE Query::Query(Query &&other) { +Q_OUTOFLINE_TEMPLATE Query::Query(Query &&other) : AbstractQuery() { d = std::move(other.d); other.d = nullptr; } diff --git a/tests/auto/tst_basic/tst_basic.cpp b/tests/auto/tst_basic/tst_basic.cpp index a188f80..4ea84e8 100644 --- a/tests/auto/tst_basic/tst_basic.cpp +++ b/tests/auto/tst_basic/tst_basic.cpp @@ -249,9 +249,8 @@ void BasicTest::testDate() void BasicTest::testLimitedQuery() { - auto q = db.comments()->query(); - auto comments = q.toList(2); - qDebug() << q.sqlCommand(); + auto comments = db.comments()->query() + .toList(2); QCOMPARE(comments.length(), 2); }