diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-04-05 22:01:53 -0400 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-04-05 22:01:53 -0400 |
commit | 49685c39895af67d7ffcc50fdc02150b6ee44f72 (patch) | |
tree | 5c5c262f95a30e58582a285b467d05954ff5f35c /src/discord/httpclient.hpp | |
parent | 9767e1e7fdef9262211ec676b4f0d4c30ff10649 (diff) | |
download | abaddon-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/httpclient.hpp')
-rw-r--r-- | src/discord/httpclient.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/discord/httpclient.hpp b/src/discord/httpclient.hpp index da8be37..47b8a4d 100644 --- a/src/discord/httpclient.hpp +++ b/src/discord/httpclient.hpp @@ -17,14 +17,14 @@ public: void SetUserAgent(std::string agent); void SetAuth(std::string auth); - void MakeDELETE(const std::string &path, std::function<void(http::response_type r)> cb); - void MakeGET(const std::string &path, std::function<void(http::response_type r)> cb); - void MakePATCH(const std::string &path, const std::string &payload, std::function<void(http::response_type r)> cb); - void MakePOST(const std::string &path, const std::string &payload, std::function<void(http::response_type r)> cb); - void MakePUT(const std::string &path, const std::string &payload, std::function<void(http::response_type r)> cb); + void MakeDELETE(const std::string &path, const std::function<void(http::response_type r)> &cb); + void MakeGET(const std::string &path, const std::function<void(http::response_type r)> &cb); + void MakePATCH(const std::string &path, const std::string &payload, const std::function<void(http::response_type r)> &cb); + void MakePOST(const std::string &path, const std::string &payload, const std::function<void(http::response_type r)> &cb); + void MakePUT(const std::string &path, const std::string &payload, const std::function<void(http::response_type r)> &cb); private: - void OnResponse(const http::response_type &r, std::function<void(http::response_type r)> cb); + void OnResponse(const http::response_type &r, const std::function<void(http::response_type r)> &cb); void CleanupFutures(); mutable std::mutex m_mutex; |