From 713d475df6f8537c8676664e610cb07ab27be8b0 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sat, 18 Mar 2017 09:39:56 +0100 Subject: [PATCH] mark override 2 virtual methods. --- utils/kicad2step/sexpr/sexpr_exception.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/utils/kicad2step/sexpr/sexpr_exception.h b/utils/kicad2step/sexpr/sexpr_exception.h index 653bdd3518..5f50227597 100644 --- a/utils/kicad2step/sexpr/sexpr_exception.h +++ b/utils/kicad2step/sexpr/sexpr_exception.h @@ -28,20 +28,20 @@ namespace SEXPR { public: PARSE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {} - const char* what() const noexcept { return msg.c_str(); } + const char* what() const noexcept override { return msg.c_str(); } virtual ~PARSE_EXCEPTION() noexcept {} private: std::string msg; }; - class INVALID_TYPE_EXCEPTION : public std::exception - { - public: - INVALID_TYPE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {} - const char* what() const noexcept { return msg.c_str(); } - virtual ~INVALID_TYPE_EXCEPTION() noexcept {} - private: - std::string msg; - }; + class INVALID_TYPE_EXCEPTION : public std::exception + { + public: + INVALID_TYPE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {} + const char* what() const noexcept override { return msg.c_str(); } + virtual ~INVALID_TYPE_EXCEPTION() noexcept {} + private: + std::string msg; + }; } #endif