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/base
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2017-07-04 12:48:25 +0300
committerArsentiy Milchakov <milcars@mapswithme.com>2017-07-04 14:09:45 +0300
commitda19077d3b927d26b197e9f09fe161c795cbe7e4 (patch)
treebdf77f090725a44f2dfe357c22637492a8c2fbef /base
parentf8aeb3711100c875e718b952d8a42442030d02af (diff)
Review fixes.
Diffstat (limited to 'base')
-rw-r--r--base/move_to_front.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/move_to_front.cpp b/base/move_to_front.cpp
index 6091c3f232..10d0a28177 100644
--- a/base/move_to_front.cpp
+++ b/base/move_to_front.cpp
@@ -4,6 +4,7 @@
#include <algorithm>
#include <cstring>
+#include <numeric>
using namespace std;
@@ -14,8 +15,7 @@ size_t constexpr MoveToFront::kNumBytes;
MoveToFront::MoveToFront()
{
- for (size_t i = 0; i < kNumBytes; ++i)
- m_order[i] = i;
+ iota(m_order.begin(), m_order.end(), 0);
}
uint8_t MoveToFront::Transform(uint8_t b)