]> granicus.if.org Git - icinga2/blobdiff - lib/livestatus/maxaggregator.cpp
Merge branch 'support/2.8'
[icinga2] / lib / livestatus / maxaggregator.cpp
index e3c6f1e65558233243d8fd37ce31b1a16aed3c13..a2265430bf0c22ebaf3bf6260d187f788dc6ce54 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;
 
-MaxAggregator::MaxAggregator(const String& attr)
-    : m_MaxAttr(attr)
+MaxAggregator::MaxAggregator(String attr)
+       : m_MaxAttr(std::move(attr))
 { }
 
 MaxAggregatorState *MaxAggregator::EnsureState(AggregatorState **state)