Loading src/core/module/Module.cpp +8 −6 Original line number Diff line number Diff line Loading @@ -85,7 +85,8 @@ Module::createOutputFile(const std::string& pathname, const std::string& extensi #ifdef __APPLE__ // Fix compiling error caused by Xcode iterator legacy auto path_it_v = std::vector<std::string>(path.begin(), path.end()); auto file_it_v = std::vector<std::string>(file.begin(), file.end()); const auto is_outside = std::search(path_it_v.begin(), path_it_v.end(), file_it_v.begin(), file_it_v.end()) == path_it_v.end(); const auto is_outside = std::search(path_it_v.begin(), path_it_v.end(), file_it_v.begin(), file_it_v.end()) == path_it_v.end(); #else const auto is_outside = std::search(path.begin(), path.end(), file.begin(), file.end()) == path.end(); #endif Loading @@ -94,6 +95,7 @@ Module::createOutputFile(const std::string& pathname, const std::string& extensi << " - this is outside the module output folder"; } } // Add the file itself - this fully replaces the "file" path in case "path" is absolute: file /= (extension.empty() ? path : path.replace_extension(extension)); Loading Loading
src/core/module/Module.cpp +8 −6 Original line number Diff line number Diff line Loading @@ -85,7 +85,8 @@ Module::createOutputFile(const std::string& pathname, const std::string& extensi #ifdef __APPLE__ // Fix compiling error caused by Xcode iterator legacy auto path_it_v = std::vector<std::string>(path.begin(), path.end()); auto file_it_v = std::vector<std::string>(file.begin(), file.end()); const auto is_outside = std::search(path_it_v.begin(), path_it_v.end(), file_it_v.begin(), file_it_v.end()) == path_it_v.end(); const auto is_outside = std::search(path_it_v.begin(), path_it_v.end(), file_it_v.begin(), file_it_v.end()) == path_it_v.end(); #else const auto is_outside = std::search(path.begin(), path.end(), file.begin(), file.end()) == path.end(); #endif Loading @@ -94,6 +95,7 @@ Module::createOutputFile(const std::string& pathname, const std::string& extensi << " - this is outside the module output folder"; } } // Add the file itself - this fully replaces the "file" path in case "path" is absolute: file /= (extension.empty() ? path : path.replace_extension(extension)); Loading