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

Unified Diff: third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp

Issue 2902393003: [DMC #17.5] Eliminate DocumentMarker and TextMatchMarker copy constructors (Closed)
Patch Set: Rebase Created 3 years, 7 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: third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp
diff --git a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp
index c37a4fe5f9825b993ba9d57b71e637acf6a7325a..b629b20b3212183d45bdf9cba90c1df3961766e7 100644
--- a/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp
+++ b/third_party/WebKit/Source/core/editing/markers/DocumentMarkerListEditor.cpp
@@ -66,7 +66,7 @@ bool DocumentMarkerListEditor::RemoveMarkers(MarkerList* list,
return start_offset < marker->EndOffset();
});
for (MarkerList::iterator i = start_pos; i != list->end();) {
- DocumentMarker marker(*i->Get());
+ const DocumentMarker& marker = *i->Get();
// markers are returned in order, so stop if we are now past the specified
// range

Powered by Google App Engine
This is Rietveld 408576698