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

Unified Diff: chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc

Issue 1407443002: Remove old C++03 move emulation code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: std::move and reflow Created 5 years, 1 month 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/browser/spellchecker/spellcheck_hunspell_dictionary.cc
diff --git a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
index 8ce3037417a41495500ebf94dc73402c0c069cdc..fd575c389a5feff550f5666e22a6fd2fc75fe632 100644
--- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
+++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h"
+#include <utility>
+
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
@@ -79,17 +81,15 @@ SpellcheckHunspellDictionary::DictionaryFile::~DictionaryFile() {
}
}
-SpellcheckHunspellDictionary::DictionaryFile::DictionaryFile(RValue other)
- : path(other.object->path),
- file(other.object->file.Pass()) {
-}
+SpellcheckHunspellDictionary::DictionaryFile::DictionaryFile(
+ DictionaryFile&& other)
+ : path(other.path), file(std::move(other.file)) {}
SpellcheckHunspellDictionary::DictionaryFile&
-SpellcheckHunspellDictionary::DictionaryFile::operator=(RValue other) {
- if (this != other.object) {
- path = other.object->path;
- file = other.object->file.Pass();
- }
+ SpellcheckHunspellDictionary::DictionaryFile::
+ operator=(DictionaryFile&& other) {
+ path = other.path;
+ file = std::move(other.file);
return *this;
}
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_hunspell_dictionary.h ('k') | chrome/common/media_galleries/picasa_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698