]> granicus.if.org Git - icinga2/blobdiff - lib/livestatus/zonestable.cpp
Move CompatUtility::GetCheckableInCheckPeriod() into Livestatus feature
[icinga2] / lib / livestatus / zonestable.cpp
index 25ff3149a22bb7f3cc73fd8c15a5cabea433f5d5..f94c825ea38204e0788ed3948838b9381f55c5f7 100644 (file)
@@ -1,6 +1,6 @@
 /******************************************************************************
  * Icinga 2                                                                   *
- * Copyright (C) 2012-2016 Icinga Development Team (https://www.icinga.org/)  *
+ * 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;
 
-ZonesTable::ZonesTable(void)
+ZonesTable::ZonesTable()
 {
        AddColumns(this);
 }
 
 void ZonesTable::AddColumns(Table *table, const String& prefix,
-    const Column::ObjectAccessor& objectAccessor)
+       const Column::ObjectAccessor& objectAccessor)
 {
        table->AddColumn(prefix + "name", Column(&ZonesTable::NameAccessor, objectAccessor));
        table->AddColumn(prefix + "parent", Column(&ZonesTable::ParentAccessor, objectAccessor));
@@ -37,12 +37,12 @@ void ZonesTable::AddColumns(Table *table, const String& prefix,
        table->AddColumn(prefix + "global", Column(&ZonesTable::GlobalAccessor, objectAccessor));
 }
 
-String ZonesTable::GetName(void) const
+String ZonesTable::GetName() const
 {
        return "zones";
 }
 
-String ZonesTable::GetPrefix(void) const
+String ZonesTable::GetPrefix() const
 {
        return "zone";
 }
@@ -91,7 +91,7 @@ Value ZonesTable::EndpointsAccessor(const Value& row)
 
        Array::Ptr endpoint_names = new Array();
 
-       for (const Endpoint::Ptr endpoint : endpoints) {
+       for (const Endpoint::Ptr& endpoint : endpoints) {
                endpoint_names->Add(endpoint->GetName());
        }