From 527c98fe150b20356f60bd007bcc60bd2317bf8e Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Fri, 17 Mar 2017 22:45:28 -0400 Subject: [PATCH] kicad2step: shadowed virtual because of wrong qualifiers --- utils/kicad2step/sexpr/sexpr_exception.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/utils/kicad2step/sexpr/sexpr_exception.h b/utils/kicad2step/sexpr/sexpr_exception.h index 4d2992f4d7..653bdd3518 100644 --- a/utils/kicad2step/sexpr/sexpr_exception.h +++ b/utils/kicad2step/sexpr/sexpr_exception.h @@ -1,5 +1,6 @@ /* * Copyright (C) 2016 Mark Roszko + * Copyright (C) 2017 KiCad Developers, see AUTHORS.txt for contributors. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -27,8 +28,8 @@ namespace SEXPR { public: PARSE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {} - const char* what() { return msg.c_str(); } - virtual ~PARSE_EXCEPTION() throw() {} + const char* what() const noexcept { return msg.c_str(); } + virtual ~PARSE_EXCEPTION() noexcept {} private: std::string msg; }; @@ -37,8 +38,8 @@ namespace SEXPR { public: INVALID_TYPE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {} - const char* what() { return msg.c_str(); } - virtual ~INVALID_TYPE_EXCEPTION() throw() {} + const char* what() const noexcept { return msg.c_str(); } + virtual ~INVALID_TYPE_EXCEPTION() noexcept {} private: std::string msg; };