From 16efc8beec89084c2da68355d31c2e6d74fb5652 Mon Sep 17 00:00:00 2001 From: Hartmut Kaiser Date: Wed, 16 Mar 2005 07:45:49 +0000 Subject: [PATCH] Minor optimisation. [SVN r27686] --- include/boost/wave/util/cpp_include_pathes.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/wave/util/cpp_include_pathes.hpp b/include/boost/wave/util/cpp_include_pathes.hpp index dfc237e..fd56436 100644 --- a/include/boost/wave/util/cpp_include_pathes.hpp +++ b/include/boost/wave/util/cpp_include_pathes.hpp @@ -146,9 +146,9 @@ bool include_pathes::find_include_file (std::string &s, // with the directory in the search path after the one where the current // file was found. + fs::path file_path (current_file, fs::native); for (/**/; it != include_pathes_end; ++it) { fs::path currpath ((*it).string(), fs::native); - fs::path file_path (current_file, fs::native); if (std::equal(currpath.begin(), currpath.end(), file_path.begin())) { ++it; // start searching with the next directory