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