summaryrefslogtreecommitdiff
path: root/src/discord/store.hpp
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2022-04-05 22:01:53 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2022-04-05 22:01:53 -0400
commit49685c39895af67d7ffcc50fdc02150b6ee44f72 (patch)
tree5c5c262f95a30e58582a285b467d05954ff5f35c /src/discord/store.hpp
parent9767e1e7fdef9262211ec676b4f0d4c30ff10649 (diff)
downloadabaddon-portaudio-49685c39895af67d7ffcc50fdc02150b6ee44f72.tar.gz
abaddon-portaudio-49685c39895af67d7ffcc50fdc02150b6ee44f72.zip
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
Diffstat (limited to 'src/discord/store.hpp')
-rw-r--r--src/discord/store.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/discord/store.hpp b/src/discord/store.hpp
index a1e5f81..4cf5e14 100644
--- a/src/discord/store.hpp
+++ b/src/discord/store.hpp
@@ -101,7 +101,7 @@ private:
~Statement();
Statement &operator=(Statement &other) = delete;
- bool OK() const;
+ [[nodiscard]] bool OK() const;
int Bind(int index, Snowflake id);
int Bind(int index, const char *str, size_t len = -1);
@@ -224,7 +224,7 @@ private:
*first++ = id.get<T>();
}
- bool IsNull(int index) const;
+ [[nodiscard]] bool IsNull(int index) const;
int Step();
bool Insert();
bool FetchOne();
@@ -238,7 +238,7 @@ private:
};
Message GetMessageBound(std::unique_ptr<Statement> &stmt) const;
- RoleData GetRoleBound(std::unique_ptr<Statement> &stmt) const;
+ static RoleData GetRoleBound(std::unique_ptr<Statement> &stmt);
void SetMessageInteractionPair(Snowflake message_id, const MessageInteractionData &interaction);