Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6185)

Unified Diff: chrome/renderer/spellchecker/spellcheck_worditerator.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/spellchecker/spellcheck_worditerator.cc
diff --git a/chrome/renderer/spellchecker/spellcheck_worditerator.cc b/chrome/renderer/spellchecker/spellcheck_worditerator.cc
index abe1d86b212a258eeef9a534167b85b7a1e2c91e..0183ebbf5202537147f7e9a3decec3dd798cb073 100644
--- a/chrome/renderer/spellchecker/spellcheck_worditerator.cc
+++ b/chrome/renderer/spellchecker/spellcheck_worditerator.cc
@@ -8,6 +8,7 @@
#include <map>
#include <string>
+#include <utility>
#include "base/i18n/break_iterator.h"
#include "base/logging.h"
@@ -334,7 +335,7 @@ bool SpellcheckWordIterator::Initialize(
NOTREACHED() << "failed to open iterator (broken rules)";
return false;
}
- iterator_ = iterator.Pass();
+ iterator_ = std::move(iterator);
// Set the character attributes so we can normalize the words extracted by
// this iterator.

Powered by Google App Engine
This is Rietveld 408576698