/******************************************************************************
* Icinga 2 *
- * Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/) *
+ * Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/) *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
using namespace icinga;
-AvgAggregator::AvgAggregator(const String& attr)
- : m_AvgAttr(attr)
+AvgAggregator::AvgAggregator(String attr)
+ : m_AvgAttr(std::move(attr))
{ }
AvgAggregatorState *AvgAggregator::EnsureState(AggregatorState **state)