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/filecache.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/filecache.hpp')
-rw-r--r-- | src/filecache.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/filecache.hpp b/src/filecache.hpp index d25fdb3..5214fb2 100644 --- a/src/filecache.hpp +++ b/src/filecache.hpp @@ -59,13 +59,13 @@ public: ~Cache(); using callback_type = std::function<void(std::string)>; - void GetFileFromURL(std::string url, callback_type cb); - std::string GetPathIfCached(std::string url); + void GetFileFromURL(const std::string &url, const callback_type &cb); + std::string GetPathIfCached(const std::string &url); void ClearCache(); private: void CleanupFutures(); - void RespondFromPath(std::filesystem::path path, callback_type cb); + static void RespondFromPath(const std::filesystem::path &path, const callback_type &cb); void OnResponse(const std::string &url); void OnFetchComplete(const std::string &url); |