From 06d2a08a072da4772308f9add751dfb1b50ba505 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Wed, 29 Mar 2017 13:15:00 +0200 Subject: Use default constructors and assignment operators. --- .../src/vespa/searchlib/aggregation/aggregation.cpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'searchlib') 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 @@ -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() { } -- cgit v1.2.3