mirror of https://github.com/Icinga/icinga2.git
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 ValidateName(const String& value, const ValidationUtils& utils) override;
|
||||
virtual void ValidateName(const String& value, const ValidationUtils& utils) override final;
|
||||
|
||||
private:
|
||||
static Application::Ptr m_Instance; /**< The application instance. */
|
||||
|
|
|
@ -55,7 +55,7 @@ public:
|
|||
ScriptError(const String& message, const DebugInfo& di, bool incompleteExpr = false);
|
||||
~ScriptError(void) throw();
|
||||
|
||||
virtual const char *what(void) const throw() override;
|
||||
virtual const char *what(void) const throw() override final;
|
||||
|
||||
DebugInfo GetDebugInfo(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(void) throw();
|
||||
|
||||
virtual const char *what(void) const throw() override;
|
||||
virtual const char *what(void) const throw() override final;
|
||||
|
||||
ConfigObject::Ptr GetObject(void) const;
|
||||
std::vector<String> GetAttributePath(void) const;
|
||||
|
@ -128,7 +128,7 @@ public:
|
|||
posix_error(void);
|
||||
virtual ~posix_error(void) throw();
|
||||
|
||||
virtual const char *what(void) const throw() override;
|
||||
virtual const char *what(void) const throw() override final;
|
||||
|
||||
private:
|
||||
mutable char *m_Message;
|
||||
|
|
|
@ -90,7 +90,7 @@ public:
|
|||
static void SetConsoleLogSeverity(LogSeverity logSeverity);
|
||||
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:
|
||||
virtual void Start(bool runtimeCreated) override;
|
||||
|
|
|
@ -48,8 +48,8 @@ public:
|
|||
static void ProcessLogEntry(std::ostream& stream, const LogEntry& entry);
|
||||
|
||||
protected:
|
||||
virtual void ProcessLogEntry(const LogEntry& entry) override;
|
||||
virtual void Flush(void) override;
|
||||
virtual void ProcessLogEntry(const LogEntry& entry) override final;
|
||||
virtual void Flush(void) override final;
|
||||
|
||||
private:
|
||||
static boost::mutex m_Mutex;
|
||||
|
|
|
@ -274,7 +274,7 @@ public:
|
|||
{ }
|
||||
|
||||
protected:
|
||||
virtual const DebugInfo& GetDebugInfo(void) const override;
|
||||
virtual const DebugInfo& GetDebugInfo(void) const override final;
|
||||
|
||||
DebugInfo m_DebugInfo;
|
||||
};
|
||||
|
|
|
@ -76,8 +76,8 @@ public:
|
|||
int GetQueryCount(RingBuffer::SizeType span);
|
||||
virtual int GetPendingQueryCount(void) const = 0;
|
||||
|
||||
virtual void ValidateFailoverTimeout(double value, const ValidationUtils& utils) override;
|
||||
virtual void ValidateCategories(const Array::Ptr& 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 final;
|
||||
|
||||
protected:
|
||||
virtual void OnConfigLoaded(void) override;
|
||||
|
|
|
@ -115,7 +115,7 @@ public:
|
|||
bool HasBeenChecked(void) const;
|
||||
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;
|
||||
|
||||
|
@ -145,7 +145,7 @@ public:
|
|||
static boost::signals2::signal<void (const Checkable::Ptr&)> OnEventCommandExecuted;
|
||||
|
||||
/* Downtimes */
|
||||
virtual int GetDowntimeDepth(void) const override;
|
||||
virtual int GetDowntimeDepth(void) const override final;
|
||||
|
||||
void RemoveAllDowntimes(void);
|
||||
void TriggerDowntimes(void);
|
||||
|
@ -191,8 +191,8 @@ public:
|
|||
void RemoveReverseDependency(const intrusive_ptr<Dependency>& dep);
|
||||
std::vector<intrusive_ptr<Dependency> > GetReverseDependencies(void) const;
|
||||
|
||||
virtual void ValidateCheckInterval(double value, const ValidationUtils& utils) override;
|
||||
virtual void ValidateMaxCheckAttempts(int value, const ValidationUtils& utils) override;
|
||||
virtual void ValidateCheckInterval(double value, const ValidationUtils& utils) override final;
|
||||
virtual void ValidateMaxCheckAttempts(int value, const ValidationUtils& utils) override final;
|
||||
|
||||
static void IncreasePendingChecks(void);
|
||||
static void DecreasePendingChecks(void);
|
||||
|
|
|
@ -38,7 +38,7 @@ class CustomVarObject : public ObjectImpl<CustomVarObject>
|
|||
public:
|
||||
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);
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
Column GetColumn(const String& name) const;
|
||||
std::vector<String> GetColumnNames(void) const;
|
||||
|
||||
virtual LivestatusGroupByType GetGroupByType(void) const;
|
||||
LivestatusGroupByType GetGroupByType(void) const;
|
||||
|
||||
protected:
|
||||
Table(LivestatusGroupByType type = LivestatusGroupByNone);
|
||||
|
|
Loading…
Reference in New Issue