From 8fdb2835e5fe0972b2658e4bff139d40164e10cf Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 28 Oct 2014 18:04:51 +0100 Subject: [PATCH] Fix code style --- lib/compat/compatlogger.cpp | 2 +- lib/compat/compatlogger.hpp | 2 +- lib/icinga/compatutility.cpp | 2 +- lib/icinga/hostgroup.cpp | 2 +- lib/icinga/servicegroup.cpp | 2 +- lib/icinga/usergroup.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/compat/compatlogger.cpp b/lib/compat/compatlogger.cpp index 40dc58f60..bb8a9e3bf 100644 --- a/lib/compat/compatlogger.cpp +++ b/lib/compat/compatlogger.cpp @@ -235,7 +235,7 @@ void CompatLogger::RemoveDowntimeHandler(const Checkable::Ptr& checkable, const * @threadsafety Always. */ void CompatLogger::NotificationSentHandler(const Notification::Ptr& notification, const Checkable::Ptr& checkable, - const User::Ptr& user, NotificationType const& notification_type, CheckResult::Ptr const& cr, + const User::Ptr& user, NotificationType notification_type, CheckResult::Ptr const& cr, const String& author, const String& comment_text, const String& command_name) { Host::Ptr host; diff --git a/lib/compat/compatlogger.hpp b/lib/compat/compatlogger.hpp index c29c09d48..ebd8e1209 100644 --- a/lib/compat/compatlogger.hpp +++ b/lib/compat/compatlogger.hpp @@ -52,7 +52,7 @@ private: void CheckResultHandler(const Checkable::Ptr& service, const CheckResult::Ptr& cr); void NotificationSentHandler(const Notification::Ptr& notification, const Checkable::Ptr& service, - const User::Ptr& user, NotificationType const& notification_type, CheckResult::Ptr const& cr, + const User::Ptr& user, NotificationType notification_type, CheckResult::Ptr const& cr, const String& author, const String& comment_text, const String& command_name); void FlappingHandler(const Checkable::Ptr& service, FlappingState flapping_state); void TriggerDowntimeHandler(const Checkable::Ptr& service, const Downtime::Ptr& downtime); diff --git a/lib/icinga/compatutility.cpp b/lib/icinga/compatutility.cpp index e16aef709..bb2ab7570 100644 --- a/lib/icinga/compatutility.cpp +++ b/lib/icinga/compatutility.cpp @@ -349,7 +349,7 @@ int CompatUtility::GetCheckableInNotificationPeriod(const Checkable::Ptr& checka /* vars attr */ -bool CompatUtility::IsLegacyAttribute(CustomVarObject::Ptr const& object, const String& name) +bool CompatUtility::IsLegacyAttribute(const CustomVarObject::Ptr& object, const String& name) { if ((name == "address" || name == "address6") && diff --git a/lib/icinga/hostgroup.cpp b/lib/icinga/hostgroup.cpp index 8c8482ab1..8bf54905c 100644 --- a/lib/icinga/hostgroup.cpp +++ b/lib/icinga/hostgroup.cpp @@ -110,7 +110,7 @@ void HostGroup::RemoveMember(const Host::Ptr& host) m_Members.erase(host); } -bool HostGroup::ResolveGroupMembership(Host::Ptr const& host, bool add, int rstack) { +bool HostGroup::ResolveGroupMembership(const Host::Ptr& host, bool add, int rstack) { if (add && rstack > 20) { Log(LogWarning, "HostGroup") diff --git a/lib/icinga/servicegroup.cpp b/lib/icinga/servicegroup.cpp index 76aa92833..2aa28c63d 100644 --- a/lib/icinga/servicegroup.cpp +++ b/lib/icinga/servicegroup.cpp @@ -113,7 +113,7 @@ void ServiceGroup::RemoveMember(const Service::Ptr& service) m_Members.erase(service); } -bool ServiceGroup::ResolveGroupMembership(Service::Ptr const& service, bool add, int rstack) { +bool ServiceGroup::ResolveGroupMembership(const Service::Ptr& service, bool add, int rstack) { if (add && rstack > 20) { Log(LogWarning, "ServiceGroup") diff --git a/lib/icinga/usergroup.cpp b/lib/icinga/usergroup.cpp index 4bfa70bd2..2f2cb27e1 100644 --- a/lib/icinga/usergroup.cpp +++ b/lib/icinga/usergroup.cpp @@ -110,7 +110,7 @@ void UserGroup::RemoveMember(const User::Ptr& user) m_Members.erase(user); } -bool UserGroup::ResolveGroupMembership(User::Ptr const& user, bool add, int rstack) { +bool UserGroup::ResolveGroupMembership(const User::Ptr& user, bool add, int rstack) { if (add && rstack > 20) { Log(LogWarning, "UserGroup")