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

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/openlr
diff options
context:
space:
mode:
authorArsentiy Milchakov <milcars@mapswithme.com>2017-03-23 14:50:19 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2017-03-23 14:50:19 +0300
commit4b1318238b1b7544d1156e9525b85f654ba2dc2d (patch)
tree659373b72d9af6233c5772d9c02a41a4450ce1bb /openlr
parent431299e98329b863b2518ed863c918bc0501256d (diff)
review fixes
Diffstat (limited to 'openlr')
-rw-r--r--openlr/openlr_simple_decoder.cpp2
-rw-r--r--openlr/openlr_stat/openlr_stat.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/openlr/openlr_simple_decoder.cpp b/openlr/openlr_simple_decoder.cpp
index 2d90aa4712..560ff8e9dc 100644
--- a/openlr/openlr_simple_decoder.cpp
+++ b/openlr/openlr_simple_decoder.cpp
@@ -128,7 +128,7 @@ void OpenLRSimpleDecoder::Decode(string const & outputFilename, int const segmen
my::EraseIf(segments,
[&filter](LinearSegment const & segment) { return !filter.Matches(segment); });
- if (segmentsToHandle != kHandleAllSegments && segmentsToHandle > 0 &&
+ if (segmentsToHandle != kHandleAllSegments && segmentsToHandle >= 0 &&
static_cast<size_t>(segmentsToHandle) < segments.size())
segments.resize(segmentsToHandle);
diff --git a/openlr/openlr_stat/openlr_stat.cpp b/openlr/openlr_stat/openlr_stat.cpp
index 5823c5a492..f238f27210 100644
--- a/openlr/openlr_stat/openlr_stat.cpp
+++ b/openlr/openlr_stat/openlr_stat.cpp
@@ -108,14 +108,14 @@ int main(int argc, char * argv[])
classificator::Load();
- auto const num_threads = static_cast<uint32_t>(FLAGS_num_threads);
+ auto const numThreads = static_cast<uint32_t>(FLAGS_num_threads);
- vector<Index> indexes(num_threads);
+ vector<Index> indexes(numThreads);
LoadIndexes(FLAGS_mwms_path, indexes);
OpenLRSimpleDecoder::SegmentsFilter filter(FLAGS_ids_path, FLAGS_multipoints_only);
OpenLRSimpleDecoder decoder(FLAGS_input, indexes);
- decoder.Decode(FLAGS_output, FLAGS_limit, filter, num_threads);
+ decoder.Decode(FLAGS_output, FLAGS_limit, filter, numThreads);
return 0;
}