mirror of https://github.com/Icinga/icinga2.git
Fix code style
This commit is contained in:
parent
6dd342f46a
commit
8fdb2835e5
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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") &&
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue