summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)