diff options
Diffstat (limited to 'app-i18n/mozc/files/mozc-2.20.2673.102-gcc-5.patch')
-rw-r--r-- | app-i18n/mozc/files/mozc-2.20.2673.102-gcc-5.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app-i18n/mozc/files/mozc-2.20.2673.102-gcc-5.patch b/app-i18n/mozc/files/mozc-2.20.2673.102-gcc-5.patch new file mode 100644 index 000000000000..b8b2bf1808ec --- /dev/null +++ b/app-i18n/mozc/files/mozc-2.20.2673.102-gcc-5.patch @@ -0,0 +1,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; + } |