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

Unified Diff: components/query_parser/snippet.cc

Issue 2781263002: Some C++11 cleanup of history types. (Closed)
Patch Set: Fix Android Created 3 years, 9 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
« no previous file with comments | « components/query_parser/snippet.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/query_parser/snippet.cc
diff --git a/components/query_parser/snippet.cc b/components/query_parser/snippet.cc
index f540be5ca32f3bda4998e2b8a016c4d34e66b819..3133d8feda2b9eff021d1e7138fb8c8adc3014a4 100644
--- a/components/query_parser/snippet.cc
+++ b/components/query_parser/snippet.cc
@@ -210,9 +210,16 @@ Snippet::Snippet() {
Snippet::Snippet(const Snippet& other) = default;
+// TODO(bug 706963) this should be implemented as "= default" when Android
+// toolchain is updated.
+Snippet::Snippet(Snippet&& other) noexcept
+ : text_(std::move(other.text_)), matches_(std::move(other.matches_)) {}
+
Snippet::~Snippet() {
}
+Snippet& Snippet::operator=(const Snippet&) = default;
+
void Snippet::ComputeSnippet(const MatchPositions& match_positions,
const std::string& document) {
// The length of snippets we try to produce.
« no previous file with comments | « components/query_parser/snippet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698