From e4d90bf2814c9a9c30f23eff8cfc80db3f969b42 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Thu, 23 Sep 2021 00:05:40 +0200 Subject: [PATCH] Manager: Make the callable functions non-static --- src/dotfile.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/dotfile.h b/src/dotfile.h index eedab9e..da766bb 100644 --- a/src/dotfile.h +++ b/src/dotfile.h @@ -31,17 +31,17 @@ public: std::string path; }; - static void add(const std::vector& targets = {}); - static void list(const std::vector& targets = {}); + void add(const std::vector& targets = {}); + void list(const std::vector& targets = {}); static void setWorkingDirectory(std::filesystem::path directory) { s_workingDirectory = directory; } static void setSystemDirectories(const std::vector& systemDirectories) { s_systemDirectories = systemDirectories; } static void setExcludePaths(const std::vector& excludePaths) { s_excludePaths = excludePaths; } private: - static void forEachDotfile(const std::vector& targets, const std::function& callback); - static bool filter(const std::filesystem::path& path); - static bool include(const std::filesystem::path& path, const std::vector& targets); + void forEachDotfile(const std::vector& targets, const std::function& callback); + bool filter(const std::filesystem::path& path); + bool include(const std::filesystem::path& path, const std::vector& targets); static std::vector s_excludePaths; static std::vector s_systemDirectories;