mirror of
https://github.com/Icinga/icinga2.git
synced 2025-11-29 10:04:04 +01:00
Fix -Wsuggest-override warnings
This commit is contained in:
parent
4f0a24f8ab
commit
758d1b6873
@ -119,7 +119,7 @@ protected:
|
|||||||
|
|
||||||
virtual void OnShutdown();
|
virtual void OnShutdown();
|
||||||
|
|
||||||
void ValidateName(const Lazy<String>& lvalue, const ValidationUtils& utils) final;
|
void ValidateName(const Lazy<String>& lvalue, const ValidationUtils& utils) override final;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static Application::Ptr m_Instance; /**< The application instance. */
|
static Application::Ptr m_Instance; /**< The application instance. */
|
||||||
|
|||||||
@ -35,7 +35,7 @@ public:
|
|||||||
ScriptError(String message);
|
ScriptError(String message);
|
||||||
ScriptError(String message, DebugInfo di, bool incompleteExpr = false);
|
ScriptError(String message, DebugInfo di, bool incompleteExpr = false);
|
||||||
|
|
||||||
const char *what(void) const throw() final;
|
const char* what() const noexcept override final;
|
||||||
|
|
||||||
DebugInfo GetDebugInfo() const;
|
DebugInfo GetDebugInfo() const;
|
||||||
bool IsIncompleteExpression() const;
|
bool IsIncompleteExpression() const;
|
||||||
@ -59,7 +59,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() throw() override;
|
~ValidationError() throw() override;
|
||||||
|
|
||||||
const char *what() const throw() override;
|
const char *what() const noexcept override;
|
||||||
|
|
||||||
ConfigObject::Ptr GetObject() const;
|
ConfigObject::Ptr GetObject() const;
|
||||||
std::vector<String> GetAttributePath() const;
|
std::vector<String> GetAttributePath() const;
|
||||||
@ -118,7 +118,7 @@ String DiagnosticInformation(const boost::exception_ptr& eptr, bool verbose = tr
|
|||||||
|
|
||||||
class posix_error : virtual public std::exception, virtual public boost::exception {
|
class posix_error : virtual public std::exception, virtual public boost::exception {
|
||||||
public:
|
public:
|
||||||
const char* what() const noexcept final;
|
const char* what() const noexcept override final;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
mutable String m_Message;
|
mutable String m_Message;
|
||||||
@ -153,7 +153,7 @@ public:
|
|||||||
|
|
||||||
~invalid_downtime_removal_error() noexcept override;
|
~invalid_downtime_removal_error() noexcept override;
|
||||||
|
|
||||||
const char *what() const noexcept final;
|
const char* what() const noexcept override final;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
String m_Message;
|
String m_Message;
|
||||||
|
|||||||
@ -88,7 +88,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SetSeverity(const String& value, bool suppress_events = false, const Value& cookie = Empty) override;
|
void SetSeverity(const String& value, bool suppress_events = false, const Value& cookie = Empty) override;
|
||||||
void ValidateSeverity(const Lazy<String>& lvalue, const ValidationUtils& utils) final;
|
void ValidateSeverity(const Lazy<String>& lvalue, const ValidationUtils& utils) override final;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void Start(bool runtimeCreated) override;
|
void Start(bool runtimeCreated) override;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user