Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Lukashov <michael.lukashov@gmail.com>2021-09-26 08:02:39 +0300
committerMikhail Lukashov <michael.lukashov@gmail.com>2021-09-26 08:49:23 +0300
commit049952cfe2b4c911a244a3ae510afb7112a4bcdc (patch)
tree2390181da395ea2c5ae6b11cb29f0fc7ba9997b9 /colorer
parent445491b2f2d851139c9b2cd6f68b219db5c65265 (diff)
fix warnings: Missing reference in range-for with non trivial type
Diffstat (limited to 'colorer')
-rw-r--r--colorer/src/Colorer-library/src/colorer/parsers/ParserFactory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/colorer/src/Colorer-library/src/colorer/parsers/ParserFactory.cpp b/colorer/src/Colorer-library/src/colorer/parsers/ParserFactory.cpp
index 20c429d0..8896bb2d 100644
--- a/colorer/src/Colorer-library/src/colorer/parsers/ParserFactory.cpp
+++ b/colorer/src/Colorer-library/src/colorer/parsers/ParserFactory.cpp
@@ -156,14 +156,14 @@ void ParserFactory::loadCatalog(const String* catalog_path)
parseCatalog(base_catalog_path);
logger->debug("begin load hrc files");
- for (auto location : hrc_locations) {
+ for (const auto& location : hrc_locations) {
try {
logger->debug("try load '{0}'", location.getChars());
auto clear_path = XmlInputSource::getClearPath(&base_catalog_path, &location);
if (XmlInputSource::isDirectory(clear_path.get())) {
std::vector<SString> paths;
XmlInputSource::getFileFromDir(clear_path.get(), paths);
- for (auto files : paths) {
+ for (const auto& files : paths) {
loadHrc(&files, &base_catalog_path);
}
} else {