summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-03-29 13:15:00 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-03-29 13:15:00 +0200
commit06d2a08a072da4772308f9add751dfb1b50ba505 (patch)
tree6cd1dd5a0f2d0c71bb1c6d3f18e72368d6fc6ab1 /searchlib
parentc865f4475457398a1d19b0e98f6e9b78196cedf2 (diff)
Use default constructors and assignment operators.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/aggregation/aggregation.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/searchlib/src/vespa/searchlib/aggregation/aggregation.cpp b/searchlib/src/vespa/searchlib/aggregation/aggregation.cpp
index 0c7d94c41d5..45224242e32 100644
--- a/searchlib/src/vespa/searchlib/aggregation/aggregation.cpp
+++ b/searchlib/src/vespa/searchlib/aggregation/aggregation.cpp
@@ -1,4 +1,5 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
#include "aggregation.h"
#include "expressioncountaggregationresult.h"
#include <vespa/searchlib/expression/resultvector.h>
@@ -42,19 +43,8 @@ AggregationResult::AggregationResult() :
_tag(-1)
{ }
-AggregationResult::AggregationResult(const AggregationResult & rhs) :
- _expressionTree(rhs._expressionTree),
- _tag(-1)
-{
-}
-
-AggregationResult &
-AggregationResult::operator=(const AggregationResult & rhs) {
- _expressionTree = rhs._expressionTree;
- _tag = rhs._tag;
- return *this;
-}
-
+AggregationResult::AggregationResult(const AggregationResult &) = default;
+AggregationResult & AggregationResult::operator = (const AggregationResult &) = default;
AggregationResult::~AggregationResult() { }