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

Unified Diff: ios/chrome/browser/reading_list/reading_list_entry.cc

Issue 2350663003: Make reading list entry movable only (Closed)
Patch Set: indentation Created 4 years, 3 months 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: ios/chrome/browser/reading_list/reading_list_entry.cc
diff --git a/ios/chrome/browser/reading_list/reading_list_entry.cc b/ios/chrome/browser/reading_list/reading_list_entry.cc
index 62fa14300bc4f9b724d7bb7152295b44d6878eb9..987c5e32be7241d2486b9a5f857f5d039dbfb400 100644
--- a/ios/chrome/browser/reading_list/reading_list_entry.cc
+++ b/ios/chrome/browser/reading_list/reading_list_entry.cc
@@ -9,7 +9,7 @@ ReadingListEntry::ReadingListEntry(const GURL& url, const std::string& title)
DCHECK(!url.is_empty());
DCHECK(url.is_valid());
}
-ReadingListEntry::ReadingListEntry(const ReadingListEntry& entry)
+ReadingListEntry::ReadingListEntry(ReadingListEntry&& entry)
: url_(entry.URL()),
title_(entry.Title()),
distilled_url_(entry.DistilledURL()),
@@ -32,7 +32,7 @@ const GURL& ReadingListEntry::DistilledURL() const {
return distilled_url_;
}
-ReadingListEntry& ReadingListEntry::operator=(const ReadingListEntry& other) {
+ReadingListEntry& ReadingListEntry::operator=(ReadingListEntry&& other) {
url_ = other.url_;
title_ = other.title_;
distilled_url_ = other.distilled_url_;
« no previous file with comments | « ios/chrome/browser/reading_list/reading_list_entry.h ('k') | ios/chrome/browser/reading_list/reading_list_entry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698