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/filecache.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/filecache.hpp') 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 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); -- cgit v1.2.3