Make props argument for NameComposer::MakeName constant

This commit is contained in:
Gunnar Beutner 2014-08-29 16:46:46 +02:00
parent 6e40ce3d91
commit eaea65a366
9 changed files with 9 additions and 9 deletions

View File

@ -10,7 +10,7 @@ enum HAMode
class NameComposer { class NameComposer {
public: public:
virtual String MakeName(const String& shortName, const Dictionary::Ptr props) const = 0; virtual String MakeName(const String& shortName, const Dictionary::Ptr& props) const = 0;
}; };
}}} }}}

View File

@ -29,7 +29,7 @@ using namespace icinga;
REGISTER_TYPE(Dependency); REGISTER_TYPE(Dependency);
REGISTER_SCRIPTFUNCTION(ValidateDependencyFilters, &Dependency::ValidateFilters); REGISTER_SCRIPTFUNCTION(ValidateDependencyFilters, &Dependency::ValidateFilters);
String DependencyNameComposer::MakeName(const String& shortName, const Dictionary::Ptr props) const String DependencyNameComposer::MakeName(const String& shortName, const Dictionary::Ptr& props) const
{ {
if (!props) if (!props)
return ""; return "";

View File

@ -8,7 +8,7 @@ code {{{
class I2_ICINGA_API DependencyNameComposer : public NameComposer class I2_ICINGA_API DependencyNameComposer : public NameComposer
{ {
public: public:
virtual String MakeName(const String& shortName, const Dictionary::Ptr props) const; virtual String MakeName(const String& shortName, const Dictionary::Ptr& props) const;
}; };
}}} }}}

View File

@ -39,7 +39,7 @@ INITIALIZE_ONCE(&Notification::StaticInitialize);
boost::signals2::signal<void (const Notification::Ptr&, double, const MessageOrigin&)> Notification::OnNextNotificationChanged; boost::signals2::signal<void (const Notification::Ptr&, double, const MessageOrigin&)> Notification::OnNextNotificationChanged;
String NotificationNameComposer::MakeName(const String& shortName, const Dictionary::Ptr props) const String NotificationNameComposer::MakeName(const String& shortName, const Dictionary::Ptr& props) const
{ {
if (!props) if (!props)
return ""; return "";

View File

@ -7,7 +7,7 @@ code {{{
class I2_ICINGA_API NotificationNameComposer : public NameComposer class I2_ICINGA_API NotificationNameComposer : public NameComposer
{ {
public: public:
virtual String MakeName(const String& shortName, const Dictionary::Ptr props) const; virtual String MakeName(const String& shortName, const Dictionary::Ptr& props) const;
}; };
}}} }}}

View File

@ -39,7 +39,7 @@ INITIALIZE_ONCE(&ScheduledDowntime::StaticInitialize);
static Timer::Ptr l_Timer; static Timer::Ptr l_Timer;
String ScheduledDowntimeNameComposer::MakeName(const String& shortName, const Dictionary::Ptr props) const String ScheduledDowntimeNameComposer::MakeName(const String& shortName, const Dictionary::Ptr& props) const
{ {
if (!props) if (!props)
return ""; return "";

View File

@ -7,7 +7,7 @@ code {{{
class I2_ICINGA_API ScheduledDowntimeNameComposer : public NameComposer class I2_ICINGA_API ScheduledDowntimeNameComposer : public NameComposer
{ {
public: public:
virtual String MakeName(const String& shortName, const Dictionary::Ptr props) const; virtual String MakeName(const String& shortName, const Dictionary::Ptr& props) const;
}; };
}}} }}}

View File

@ -30,7 +30,7 @@ using namespace icinga;
REGISTER_TYPE(Service); REGISTER_TYPE(Service);
String ServiceNameComposer::MakeName(const String& shortName, const Dictionary::Ptr props) const { String ServiceNameComposer::MakeName(const String& shortName, const Dictionary::Ptr& props) const {
if (!props) if (!props)
return ""; return "";

View File

@ -10,7 +10,7 @@ code {{{
class I2_ICINGA_API ServiceNameComposer : public NameComposer class I2_ICINGA_API ServiceNameComposer : public NameComposer
{ {
public: public:
virtual String MakeName(const String& shortName, const Dictionary::Ptr props) const; virtual String MakeName(const String& shortName, const Dictionary::Ptr& props) const;
}; };
}}} }}}