mirror of https://github.com/kiwix/libkiwix.git
Merge pull request #56 from swills/src_reader.cpp_build_fix
Fix type error in build
This commit is contained in:
commit
0be3aa9d38
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue