From 49685c39895af67d7ffcc50fdc02150b6ee44f72 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Tue, 5 Apr 2022 22:01:53 -0400 Subject: fix up a bunch of clang-tidy stuff mostly changing references, which i hope doesnt break stuff with models (TreeRow, iterators) since they gave me some strange problems in the past --- src/discord/store.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/discord/store.cpp') diff --git a/src/discord/store.cpp b/src/discord/store.cpp index ede6364..71fdfcc 100644 --- a/src/discord/store.cpp +++ b/src/discord/store.cpp @@ -1001,7 +1001,7 @@ std::optional Store::GetRole(Snowflake id) const { return role; } -RoleData Store::GetRoleBound(std::unique_ptr &s) const { +RoleData Store::GetRoleBound(std::unique_ptr &s) { RoleData r; s->Get(0, r.ID); @@ -2249,11 +2249,11 @@ int Store::Statement::Bind(int index, Snowflake id) { int Store::Statement::Bind(int index, const char *str, size_t len) { if (len == -1) len = strlen(str); - return m_db->SetError(sqlite3_bind_blob(m_stmt, index, str, len, SQLITE_TRANSIENT)); + return m_db->SetError(sqlite3_bind_blob(m_stmt, index, str, static_cast(len), SQLITE_TRANSIENT)); } int Store::Statement::Bind(int index, const std::string &str) { - return m_db->SetError(sqlite3_bind_blob(m_stmt, index, str.c_str(), str.size(), SQLITE_TRANSIENT)); + return m_db->SetError(sqlite3_bind_blob(m_stmt, index, str.c_str(), static_cast(str.size()), SQLITE_TRANSIENT)); } int Store::Statement::Bind(int index) { -- cgit v1.2.3