diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-03-29 13:32:38 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-03-29 13:32:38 +0200 |
commit | bef0c9ddf8b6fb2370913bb3070f5e969ac4856e (patch) | |
tree | afce415eb609721a8aced4fcdb3812861b686f62 /searchlib | |
parent | 06d2a08a072da4772308f9add751dfb1b50ba505 (diff) |
Use explicit std::move
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/aggregation/group.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/searchlib/src/vespa/searchlib/aggregation/group.cpp b/searchlib/src/vespa/searchlib/aggregation/group.cpp index 1421996141f..449b28a9338 100644 --- a/searchlib/src/vespa/searchlib/aggregation/group.cpp +++ b/searchlib/src/vespa/searchlib/aggregation/group.cpp @@ -637,10 +637,8 @@ Group::operator = (const Group & rhs) { Group & Group::operator = (Group && rhs) noexcept { - if (&rhs != this) { - Group g(rhs); - swap(g); - } + Group g(std::move(rhs)); + swap(g); return *this; } |