Fix build in freebsd (#1129)

This commit is contained in:
proller 2017-08-23 18:58:42 +03:00 committed by GitHub
parent 47705e21a5
commit 49ae03a4a7

View File

@ -214,7 +214,7 @@ int main(int argc, char ** argv)
<< std::endl;
size_t i = 0;
for (RefsHashMap::const_iterator it = set.begin(); i < elems_show && it != set.end(); ++it, ++i)
for (auto it = set.begin(); i < elems_show && it != set.end(); ++it, ++i)
{
devnull.write(it->first.data, it->first.size);
devnull << std::endl;
@ -241,7 +241,7 @@ int main(int argc, char ** argv)
<< std::endl;
size_t i = 0;
for (RefsHashMap::const_iterator it = set.begin(); i < elems_show && it != set.end(); ++it, ++i)
for (auto it = set.begin(); i < elems_show && it != set.end(); ++it, ++i)
{
devnull.write(it->first.data, it->first.size);
devnull << std::endl;