mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
Add the final keyword to methods
This commit is contained in:
parent
efe99a3e5e
commit
41f0fbfd30
@ -174,7 +174,7 @@ protected:
|
|||||||
|
|
||||||
virtual void OnShutdown(void);
|
virtual void OnShutdown(void);
|
||||||
|
|
||||||
virtual void ValidateName(const String& value, const ValidationUtils& utils) override;
|
virtual void ValidateName(const String& value, const ValidationUtils& utils) override final;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static Application::Ptr m_Instance; /**< The application instance. */
|
static Application::Ptr m_Instance; /**< The application instance. */
|
||||||
|
@ -55,7 +55,7 @@ public:
|
|||||||
ScriptError(const String& message, const DebugInfo& di, bool incompleteExpr = false);
|
ScriptError(const String& message, const DebugInfo& di, bool incompleteExpr = false);
|
||||||
~ScriptError(void) throw();
|
~ScriptError(void) throw();
|
||||||
|
|
||||||
virtual const char *what(void) const throw() override;
|
virtual const char *what(void) const throw() override final;
|
||||||
|
|
||||||
DebugInfo GetDebugInfo(void) const;
|
DebugInfo GetDebugInfo(void) const;
|
||||||
bool IsIncompleteExpression(void) const;
|
bool IsIncompleteExpression(void) const;
|
||||||
@ -79,7 +79,7 @@ public:
|
|||||||
ValidationError(const ConfigObject::Ptr& object, const std::vector<String>& attributePath, const String& message);
|
ValidationError(const ConfigObject::Ptr& object, const std::vector<String>& attributePath, const String& message);
|
||||||
~ValidationError(void) throw();
|
~ValidationError(void) throw();
|
||||||
|
|
||||||
virtual const char *what(void) const throw() override;
|
virtual const char *what(void) const throw() override final;
|
||||||
|
|
||||||
ConfigObject::Ptr GetObject(void) const;
|
ConfigObject::Ptr GetObject(void) const;
|
||||||
std::vector<String> GetAttributePath(void) const;
|
std::vector<String> GetAttributePath(void) const;
|
||||||
@ -128,7 +128,7 @@ public:
|
|||||||
posix_error(void);
|
posix_error(void);
|
||||||
virtual ~posix_error(void) throw();
|
virtual ~posix_error(void) throw();
|
||||||
|
|
||||||
virtual const char *what(void) const throw() override;
|
virtual const char *what(void) const throw() override final;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
mutable char *m_Message;
|
mutable char *m_Message;
|
||||||
|
@ -90,7 +90,7 @@ public:
|
|||||||
static void SetConsoleLogSeverity(LogSeverity logSeverity);
|
static void SetConsoleLogSeverity(LogSeverity logSeverity);
|
||||||
static LogSeverity GetConsoleLogSeverity(void);
|
static LogSeverity GetConsoleLogSeverity(void);
|
||||||
|
|
||||||
virtual void ValidateSeverity(const String& value, const ValidationUtils& utils) override;
|
virtual void ValidateSeverity(const String& value, const ValidationUtils& utils) override final;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void Start(bool runtimeCreated) override;
|
virtual void Start(bool runtimeCreated) override;
|
||||||
|
@ -48,8 +48,8 @@ public:
|
|||||||
static void ProcessLogEntry(std::ostream& stream, const LogEntry& entry);
|
static void ProcessLogEntry(std::ostream& stream, const LogEntry& entry);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void ProcessLogEntry(const LogEntry& entry) override;
|
virtual void ProcessLogEntry(const LogEntry& entry) override final;
|
||||||
virtual void Flush(void) override;
|
virtual void Flush(void) override final;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static boost::mutex m_Mutex;
|
static boost::mutex m_Mutex;
|
||||||
|
@ -274,7 +274,7 @@ public:
|
|||||||
{ }
|
{ }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual const DebugInfo& GetDebugInfo(void) const override;
|
virtual const DebugInfo& GetDebugInfo(void) const override final;
|
||||||
|
|
||||||
DebugInfo m_DebugInfo;
|
DebugInfo m_DebugInfo;
|
||||||
};
|
};
|
||||||
|
@ -76,8 +76,8 @@ public:
|
|||||||
int GetQueryCount(RingBuffer::SizeType span);
|
int GetQueryCount(RingBuffer::SizeType span);
|
||||||
virtual int GetPendingQueryCount(void) const = 0;
|
virtual int GetPendingQueryCount(void) const = 0;
|
||||||
|
|
||||||
virtual void ValidateFailoverTimeout(double value, const ValidationUtils& utils) override;
|
virtual void ValidateFailoverTimeout(double value, const ValidationUtils& utils) override final;
|
||||||
virtual void ValidateCategories(const Array::Ptr& value, const ValidationUtils& utils) override;
|
virtual void ValidateCategories(const Array::Ptr& value, const ValidationUtils& utils) override final;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void OnConfigLoaded(void) override;
|
virtual void OnConfigLoaded(void) override;
|
||||||
|
@ -115,7 +115,7 @@ public:
|
|||||||
bool HasBeenChecked(void) const;
|
bool HasBeenChecked(void) const;
|
||||||
virtual bool IsStateOK(ServiceState state) = 0;
|
virtual bool IsStateOK(ServiceState state) = 0;
|
||||||
|
|
||||||
virtual double GetLastCheck(void) const override;
|
virtual double GetLastCheck(void) const override final;
|
||||||
|
|
||||||
virtual void SaveLastState(ServiceState state, double timestamp) = 0;
|
virtual void SaveLastState(ServiceState state, double timestamp) = 0;
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ public:
|
|||||||
static boost::signals2::signal<void (const Checkable::Ptr&)> OnEventCommandExecuted;
|
static boost::signals2::signal<void (const Checkable::Ptr&)> OnEventCommandExecuted;
|
||||||
|
|
||||||
/* Downtimes */
|
/* Downtimes */
|
||||||
virtual int GetDowntimeDepth(void) const override;
|
virtual int GetDowntimeDepth(void) const override final;
|
||||||
|
|
||||||
void RemoveAllDowntimes(void);
|
void RemoveAllDowntimes(void);
|
||||||
void TriggerDowntimes(void);
|
void TriggerDowntimes(void);
|
||||||
@ -191,8 +191,8 @@ public:
|
|||||||
void RemoveReverseDependency(const intrusive_ptr<Dependency>& dep);
|
void RemoveReverseDependency(const intrusive_ptr<Dependency>& dep);
|
||||||
std::vector<intrusive_ptr<Dependency> > GetReverseDependencies(void) const;
|
std::vector<intrusive_ptr<Dependency> > GetReverseDependencies(void) const;
|
||||||
|
|
||||||
virtual void ValidateCheckInterval(double value, const ValidationUtils& utils) override;
|
virtual void ValidateCheckInterval(double value, const ValidationUtils& utils) override final;
|
||||||
virtual void ValidateMaxCheckAttempts(int value, const ValidationUtils& utils) override;
|
virtual void ValidateMaxCheckAttempts(int value, const ValidationUtils& utils) override final;
|
||||||
|
|
||||||
static void IncreasePendingChecks(void);
|
static void IncreasePendingChecks(void);
|
||||||
static void DecreasePendingChecks(void);
|
static void DecreasePendingChecks(void);
|
||||||
|
@ -38,7 +38,7 @@ class CustomVarObject : public ObjectImpl<CustomVarObject>
|
|||||||
public:
|
public:
|
||||||
DECLARE_OBJECT(CustomVarObject);
|
DECLARE_OBJECT(CustomVarObject);
|
||||||
|
|
||||||
virtual void ValidateVars(const Dictionary::Ptr& value, const ValidationUtils& utils) override;
|
virtual void ValidateVars(const Dictionary::Ptr& value, const ValidationUtils& utils) override final;
|
||||||
};
|
};
|
||||||
|
|
||||||
int FilterArrayToInt(const Array::Ptr& typeFilters, const std::map<String, int>& filterMap, int defaultValue);
|
int FilterArrayToInt(const Array::Ptr& typeFilters, const std::map<String, int>& filterMap, int defaultValue);
|
||||||
|
@ -58,7 +58,7 @@ public:
|
|||||||
Column GetColumn(const String& name) const;
|
Column GetColumn(const String& name) const;
|
||||||
std::vector<String> GetColumnNames(void) const;
|
std::vector<String> GetColumnNames(void) const;
|
||||||
|
|
||||||
virtual LivestatusGroupByType GetGroupByType(void) const;
|
LivestatusGroupByType GetGroupByType(void) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Table(LivestatusGroupByType type = LivestatusGroupByNone);
|
Table(LivestatusGroupByType type = LivestatusGroupByNone);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user