From bca774ea2e8761c7c9fc11615c5265955e4a65ae Mon Sep 17 00:00:00 2001 From: trilader Date: Sun, 18 Jul 2021 23:58:33 +0200 Subject: [PATCH] Make Channel::save_user_flags const, remove extra Video ctor calls --- yt.cpp | 4 +--- yt.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/yt.cpp b/yt.cpp index 6097b78..3edde65 100644 --- a/yt.cpp +++ b/yt.cpp @@ -346,7 +346,7 @@ bool Channel::is_valid() const return !id.empty() && !name.empty(); } -void Channel::save_user_flags(sqlite3 *db) +void Channel::save_user_flags(sqlite3 *db) const { sqlite3_stmt *query; SC(sqlite3_prepare_v2(db, "UPDATE channels SET user_flags = ?2 WHERE channelID = ?1;", -1, &query, nullptr)); @@ -388,7 +388,6 @@ std::vector