diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-07-12 14:07:37 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-07-17 10:29:26 +0000 |
commit | ec02ee4181c49b61fce1c8fb99292dbb8139cc90 (patch) | |
tree | 25cde714b2b71eb639d1cd53f5a22e9ba76e14ef /chromium/components/query_parser | |
parent | bb09965444b5bb20b096a291445170876225268d (diff) | |
download | qtwebengine-chromium-ec02ee4181c49b61fce1c8fb99292dbb8139cc90.tar.gz |
BASELINE: Update Chromium to 59.0.3071.134
Change-Id: Id02ef6fb2204c5fd21668a1c3e6911c83b17585a
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/components/query_parser')
-rw-r--r-- | chromium/components/query_parser/snippet.cc | 7 | ||||
-rw-r--r-- | chromium/components/query_parser/snippet.h | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/chromium/components/query_parser/snippet.cc b/chromium/components/query_parser/snippet.cc index f540be5ca32..3133d8feda2 100644 --- a/chromium/components/query_parser/snippet.cc +++ b/chromium/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. diff --git a/chromium/components/query_parser/snippet.h b/chromium/components/query_parser/snippet.h index ed6a887cb8f..11f05d6bcdc 100644 --- a/chromium/components/query_parser/snippet.h +++ b/chromium/components/query_parser/snippet.h @@ -48,8 +48,11 @@ class Snippet { Snippet(); Snippet(const Snippet& other); + Snippet(Snippet&& other) noexcept; ~Snippet(); + Snippet& operator=(const Snippet&); + // Given |matches|, the match positions within |document|, compute the snippet // for the document. // Note that |document| is UTF-8 and the offsets in |matches| are byte |