Fix -Wsuggest-override warnings

This commit is contained in:
Johannes Schmidt 2025-10-17 14:08:06 +02:00
parent 4f0a24f8ab
commit 758d1b6873
3 changed files with 6 additions and 6 deletions

View File

@ -119,7 +119,7 @@ protected:
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:
static Application::Ptr m_Instance; /**< The application instance. */

View File

@ -35,7 +35,7 @@ public:
ScriptError(String message);
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;
bool IsIncompleteExpression() const;
@ -59,7 +59,7 @@ public:
ValidationError(const ConfigObject::Ptr& object, const std::vector<String>& attributePath, const String& message);
~ValidationError() throw() override;
const char *what() const throw() override;
const char *what() const noexcept override;
ConfigObject::Ptr GetObject() 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 {
public:
const char* what() const noexcept final;
const char* what() const noexcept override final;
private:
mutable String m_Message;
@ -153,7 +153,7 @@ public:
~invalid_downtime_removal_error() noexcept override;
const char *what() const noexcept final;
const char* what() const noexcept override final;
private:
String m_Message;

View File

@ -88,7 +88,7 @@ public:
}
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:
void Start(bool runtimeCreated) override;