Merge pull request #56 from swills/src_reader.cpp_build_fix

Fix type error in build
This commit is contained in:
Matthieu Gautier 2017-06-16 15:30:11 +02:00 committed by GitHub
commit 0be3aa9d38
1 changed files with 2 additions and 4 deletions

View File

@ -128,7 +128,7 @@ namespace kiwix {
if (counterMap.empty()) {
counter = this->nsACount;
} else {
std::map<std::string, unsigned int>::const_iterator it = counterMap.find("text/html");
auto it = counterMap.find("text/html");
if (it != counterMap.end())
counter = it->second;
}
@ -144,9 +144,7 @@ namespace kiwix {
if (counterMap.empty())
counter = this->nsICount;
else {
std::map<std::string, unsigned int>::const_iterator it;
it = counterMap.find("image/jpeg");
auto it = counterMap.find("image/jpeg");
if (it != counterMap.end())
counter += it->second;