From e34eab28c50bfcba24d946d322397a17d56eeb67 Mon Sep 17 00:00:00 2001 From: DMJC Date: Fri, 17 Jan 2025 04:29:19 +1030 Subject: [PATCH] Updated Syntax. --- src/wcm.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wcm.cpp b/src/wcm.cpp index f51d15c..6517001 100644 --- a/src/wcm.cpp +++ b/src/wcm.cpp @@ -1745,14 +1745,15 @@ void update_compound_from_section(wf::config::compound_option_t *compound, compound->set_value_untyped(value); } -Plugin* WCM::find_plugin_by_name(std::vector plugins, std::string search_name) +Plugin*WCM::find_plugin_by_name(std::vector plugins, std::string search_name) { auto it = std::find_if(plugins.begin(), plugins.end(), [&search_name](const Plugin* plugin) { return plugin->name == search_name; // Compare the plugin name }); - if (it != plugins.end()) { + if (it != plugins.end()) + { return *it; // Return the found Plugin pointer } std::cout << "plugin not found, name invalid" << std::endl;