summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Figuière <hub@figuiere.net>2020-02-09 10:49:49 -0500
committerHubert Figuière <hub@figuiere.net>2020-02-09 10:50:41 -0500
commit1ee778f5961ad0b244fed19a52e4d74c0199c91a (patch)
tree826ed19bd314e24e89a8c4a1e319ca2a599e0f66
parent609255d7c4d662c3691914099d477d8c05599215 (diff)
Don't use auto for the find_if lambda
- This breaks on older compilers like on macOS
-rw-r--r--XMPFiles/source/PluginHandler/PluginManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/XMPFiles/source/PluginHandler/PluginManager.cpp b/XMPFiles/source/PluginHandler/PluginManager.cpp
index 99f4875..fc0c89c 100644
--- a/XMPFiles/source/PluginHandler/PluginManager.cpp
+++ b/XMPFiles/source/PluginHandler/PluginManager.cpp
@@ -688,7 +688,7 @@ void PluginManager::scanRecursive( const std::string & tempPath, std::vector<std
StringVec::const_iterator iterFound =
std::find_if ( mExtensions.begin(), mExtensions.end(),
- [&fileExt](auto const &file_ext){ return file_ext == fileExt; });
+ [&fileExt](const std::string& file_ext){ return file_ext == fileExt; });
if ( iterFound != mExtensions.end() ) {
@@ -698,7 +698,7 @@ void PluginManager::scanRecursive( const std::string & tempPath, std::vector<std
StringVec::const_iterator pluginNeeded =
std::find_if ( mPluginsNeeded.begin(), mPluginsNeeded.end(),
- [&childName](auto const &child_name){ return child_name == childName; });
+ [&childName](const std::string& child_name){ return child_name == childName; });
if ( (pluginNeeded != mPluginsNeeded.end()) || mPluginsNeeded.empty() ) {
ioFoundLibs.push_back ( childPath );