]> granicus.if.org Git - icinga2/blobdiff - lib/livestatus/avgaggregator.cpp
Remove more redundant wrappers from CompatUtility class
[icinga2] / lib / livestatus / avgaggregator.cpp
index bfe5e909518a569e7a2a0885d28147efdf27f46f..592aadb1c5bb6d9c281a43ab045c9f11a36d9143 100644 (file)
@@ -1,6 +1,6 @@
 /******************************************************************************
  * 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                *
@@ -21,8 +21,8 @@
 
 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)