diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-03-30 15:30:20 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-03-30 15:30:20 +0200 |
commit | f371a3f68e1b0418d98b805420954e1319afdde7 (patch) | |
tree | 2eb8270c11fcd021eabf96457e901c0c6fbfb987 /searchlib | |
parent | eae0dfadcbfb3ce50017ff0462ac611b6c0d7f68 (diff) |
Use push_back instead of emplace_back when you have the object already.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/aggregation/grouping.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/aggregation/grouping.h b/searchlib/src/vespa/searchlib/aggregation/grouping.h index 69aac177a61..687e26b7fcd 100644 --- a/searchlib/src/vespa/searchlib/aggregation/grouping.h +++ b/searchlib/src/vespa/searchlib/aggregation/grouping.h @@ -56,7 +56,7 @@ public: Grouping &setTopN(int64_t v) { _topN = v; return *this; } Grouping &setFirstLevel(unsigned int level) { _firstLevel = level; return *this; } Grouping &setLastLevel(unsigned int level) { _lastLevel = level; return *this; } - Grouping &addLevel(GroupingLevel && level) { _levels.emplace_back(std::move(level)); return *this; } + Grouping &addLevel(GroupingLevel && level) { _levels.push_back(std::move(level)); return *this; } Grouping &setRoot(const Group &root_) { _root = root_; return *this; } Grouping &setClock(const vespalib::Clock * clock) { _clock = clock; return *this; } Grouping &setTimeOfDoom(fastos::TimeStamp timeOfDoom) { _timeOfDoom = timeOfDoom; return *this; } |