summaryrefslogtreecommitdiff
blob: b8b2bf1808ecb88ba8c17f98a4cd2726081f7707 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- /src/prediction/user_history_predictor.cc
+++ /src/prediction/user_history_predictor.cc
@@ -841,7 +841,7 @@
       // swap.
       if (i + 1 < prefix.size()) {
         string swapped_prefix = prefix;
-        swap(swapped_prefix[i], swapped_prefix[i + 1]);
+        std::swap(swapped_prefix[i], swapped_prefix[i + 1]);
         if (Util::StartsWith(str, swapped_prefix)) {
           return true;
         }