Adding using declarations for std::swap.
Closes #424.
BUG=#392,#424
REF_BUG=
REF_CL=152632013
REF_TIME=2017-04-09T12:12:55-04:00
REF_TIME_RAW=1491754375 -0400
catlyons
7 years ago
29 | 29 |
|
30 | 30 |
MAJOR=2
|
31 | 31 |
MINOR=21
|
32 | |
BUILD=2703
|
|
32 |
BUILD=2704
|
33 | 33 |
REVISION=102
|
34 | 34 |
# This version represents the version of Mozc IME engine (converter, predictor,
|
35 | 35 |
# etc.). This version info is included both in the Mozc server and in the Mozc
|
840 | 840 |
// swap.
|
841 | 841 |
if (i + 1 < prefix.size()) {
|
842 | 842 |
string swapped_prefix = prefix;
|
|
843 |
using std::swap;
|
843 | 844 |
swap(swapped_prefix[i], swapped_prefix[i + 1]);
|
844 | 845 |
if (Util::StartsWith(str, swapped_prefix)) {
|
845 | 846 |
return true;
|