summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-18 08:33:21 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-18 08:33:21 +0100
commit575f424b55ab325510b258ac37e3e530f0594544 (patch)
tree348414a29417e3f888fd596b0d6d773b64401d48 /api
parenta2aa4d5332d59d41637434e77dda1dd980880bf8 (diff)
api: fix harmless clang-tidy warnings
Diffstat (limited to 'api')
-rw-r--r--api/plugin-support.hpp4
1 files changed, 2 insertions, 2 deletions
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<std::shared_ptr<dylib>> 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<typename t>
-static inline std::shared_ptr<t> make_dylib_instance(const std::shared_ptr<dylib>& lib)
+std::shared_ptr<t> make_dylib_instance(const std::shared_ptr<dylib>& lib)
{
std::shared_ptr<t> ret;
if (lib != nullptr && lib->Constructor)