diff options
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | src/Configuration.cpp | 7 |
2 files changed, 3 insertions, 5 deletions
diff --git a/.clang-tidy b/.clang-tidy index f2fbea4..4f4613a 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -45,7 +45,6 @@ Checks: > -llvm-header-guard, -llvmlibc-*, -misc-unused-parameters, - -modernize-loop-convert, -modernize-use-trailing-return-type, -modernize-use-using, -performance-faster-string-find, diff --git a/src/Configuration.cpp b/src/Configuration.cpp index d5df719..039cda0 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -167,11 +167,10 @@ Configuration::load() // Try to find a readable configuration file const std::vector<std::string> filenames = get_filenames(); std::ifstream file; - for (size_t i = 0; i < filenames.size(); ++i) { - file.open(filenames[i].c_str(), std::ios::in); + for (const auto& filename : filenames) { + file.open(filename.c_str(), std::ios::in); if (file.good()) { - std::cout << "Loading configuration from " << filenames[i] - << std::endl; + std::cout << "Loading configuration from " << filename << std::endl; break; } } |