From 575f424b55ab325510b258ac37e3e530f0594544 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 18 Jan 2019 08:33:21 +0100 Subject: api: fix harmless clang-tidy warnings --- api/plugin-support.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api') diff --git a/api/plugin-support.hpp b/api/plugin-support.hpp index 2c1b7725..e00732ac 100644 --- a/api/plugin-support.hpp +++ b/api/plugin-support.hpp @@ -234,7 +234,7 @@ private: dylib_list filter(dylib::Type t) { QList> ret; - for (auto x : module_list) + for (const auto& x : module_list) if (x->type == t) ret.push_back(x); @@ -243,7 +243,7 @@ private: }; template -static inline std::shared_ptr make_dylib_instance(const std::shared_ptr& lib) +std::shared_ptr make_dylib_instance(const std::shared_ptr& lib) { std::shared_ptr ret; if (lib != nullptr && lib->Constructor) -- cgit v1.2.3