Commit a0b4c12f authored by Michael Ott's avatar Michael Ott
Browse files

Allow for empty plugin configuration subtrees, i.e. don't have to specifiy...

Allow for empty plugin configuration subtrees, i.e. don't have to specifiy config or path parameters if defaults should be used anyway
parent 0f8f7851
...@@ -68,7 +68,7 @@ bool Configuration::readPlugins(PluginManager& pluginManager) { ...@@ -68,7 +68,7 @@ bool Configuration::readPlugins(PluginManager& pluginManager) {
//read plugins //read plugins
BOOST_FOREACH(boost::property_tree::iptree::value_type &plugin, cfg.get_child("plugins")) { BOOST_FOREACH(boost::property_tree::iptree::value_type &plugin, cfg.get_child("plugins")) {
if (boost::iequals(plugin.first, "plugin")) { if (boost::iequals(plugin.first, "plugin")) {
if (!plugin.second.empty()) { if (!plugin.second.data().empty()) {
std::string pluginName = plugin.second.data(); std::string pluginName = plugin.second.data();
std::string pluginConfig = ""; // path to config file for plugin std::string pluginConfig = ""; // path to config file for plugin
std::string pluginPath = ""; // path to plugin std::string pluginPath = ""; // path to plugin
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment