From c9fcceb74d861525b2defec8219374edb9c1455a Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Sun, 22 Jun 2025 21:39:13 +0200 Subject: add User class --- src/atomitem.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/atomitem.cpp') diff --git a/src/atomitem.cpp b/src/atomitem.cpp index 5f099f6..191e04b 100644 --- a/src/atomitem.cpp +++ b/src/atomitem.cpp @@ -63,8 +63,8 @@ AtomItem::AtomItem(QXmlStreamReader *xmlReader) int AtomItem::getDbId() { - if (dbId != rsshit::db::IdNotFound) - return dbId; + if (id != rsshit::db::IdNotFound) + return id; const auto db = rsshit::db::open(); @@ -76,7 +76,7 @@ int AtomItem::getDbId() if (!selectQ.exec()) { qWarning() << "cannot exec query" << selectQ.lastQuery() << ":" - << selectQ.lastError().text() << ":" << selectQ.executedQuery(); + << selectQ.lastError().text(); return rsshit::db::IdNotFound; } @@ -103,8 +103,8 @@ int AtomItem::getDbId() int AtomItem::createInDb(const int feedId) { - if (dbId != rsshit::db::IdNotFound) - return dbId; + if (id != rsshit::db::IdNotFound) + return id; const auto db = rsshit::db::open(); @@ -124,7 +124,7 @@ int AtomItem::createInDb(const int feedId) if (!insertQ.exec()) { qWarning() << "cannot exec query" << insertQ.lastQuery() << ":" - << insertQ.lastError().text() << ":" << insertQ.executedQuery(); + << insertQ.lastError().text(); return rsshit::db::IdNotFound; } -- cgit v1.2.3-70-g09d2