| 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..5229bd78c50bd3e67798fb56aa1cbc124a447411 100644
|
| --- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
| +++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc
|
| @@ -79,17 +79,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(other.file.Pass()) {}
|
|
|
| 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 = other.file.Pass();
|
| return *this;
|
| }
|
|
|
|
|