]> granicus.if.org Git - icinga2/blobdiff - lib/livestatus/zonestable.cpp
Move CompatUtility::GetCheckableInCheckPeriod() into Livestatus feature
[icinga2] / lib / livestatus / zonestable.cpp
index 5ab730f81e7695964f3cf49346eee9369410dce2..f94c825ea38204e0788ed3948838b9381f55c5f7 100644 (file)
@@ -23,7 +23,7 @@
 
 using namespace icinga;
 
-ZonesTable::ZonesTable(void)
+ZonesTable::ZonesTable()
 {
        AddColumns(this);
 }
@@ -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());
        }