mirror of https://github.com/Icinga/icinga2.git
Make props argument for NameComposer::MakeName constant
This commit is contained in:
parent
6e40ce3d91
commit
eaea65a366
|
@ -10,7 +10,7 @@ enum HAMode
|
|||
|
||||
class NameComposer {
|
||||
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;
|
||||
};
|
||||
}}}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ using namespace icinga;
|
|||
REGISTER_TYPE(Dependency);
|
||||
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)
|
||||
return "";
|
||||
|
|
|
@ -8,7 +8,7 @@ code {{{
|
|||
class I2_ICINGA_API DependencyNameComposer : public NameComposer
|
||||
{
|
||||
public:
|
||||
virtual String MakeName(const String& shortName, const Dictionary::Ptr props) const;
|
||||
virtual String MakeName(const String& shortName, const Dictionary::Ptr& props) const;
|
||||
};
|
||||
}}}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ INITIALIZE_ONCE(&Notification::StaticInitialize);
|
|||
|
||||
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)
|
||||
return "";
|
||||
|
|
|
@ -7,7 +7,7 @@ code {{{
|
|||
class I2_ICINGA_API NotificationNameComposer : public NameComposer
|
||||
{
|
||||
public:
|
||||
virtual String MakeName(const String& shortName, const Dictionary::Ptr props) const;
|
||||
virtual String MakeName(const String& shortName, const Dictionary::Ptr& props) const;
|
||||
};
|
||||
}}}
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ INITIALIZE_ONCE(&ScheduledDowntime::StaticInitialize);
|
|||
|
||||
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)
|
||||
return "";
|
||||
|
|
|
@ -7,7 +7,7 @@ code {{{
|
|||
class I2_ICINGA_API ScheduledDowntimeNameComposer : public NameComposer
|
||||
{
|
||||
public:
|
||||
virtual String MakeName(const String& shortName, const Dictionary::Ptr props) const;
|
||||
virtual String MakeName(const String& shortName, const Dictionary::Ptr& props) const;
|
||||
};
|
||||
}}}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ using namespace icinga;
|
|||
|
||||
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)
|
||||
return "";
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ code {{{
|
|||
class I2_ICINGA_API ServiceNameComposer : public NameComposer
|
||||
{
|
||||
public:
|
||||
virtual String MakeName(const String& shortName, const Dictionary::Ptr props) const;
|
||||
virtual String MakeName(const String& shortName, const Dictionary::Ptr& props) const;
|
||||
};
|
||||
}}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue