kicad2step: shadowed virtual because of wrong qualifiers

This commit is contained in:
Chris Pavlina 2017-03-17 22:45:28 -04:00
parent 200c3f78a0
commit 527c98fe15
1 changed files with 5 additions and 4 deletions

View File

@ -1,5 +1,6 @@
/* /*
* Copyright (C) 2016 Mark Roszko <mark.roszko@gmail.com> * Copyright (C) 2016 Mark Roszko <mark.roszko@gmail.com>
* Copyright (C) 2017 KiCad Developers, see AUTHORS.txt for contributors.
* *
* This program is free software: you can redistribute it and/or modify * 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 * it under the terms of the GNU General Public License as published by
@ -27,8 +28,8 @@ namespace SEXPR
{ {
public: public:
PARSE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {} PARSE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {}
const char* what() { return msg.c_str(); } const char* what() const noexcept { return msg.c_str(); }
virtual ~PARSE_EXCEPTION() throw() {} virtual ~PARSE_EXCEPTION() noexcept {}
private: private:
std::string msg; std::string msg;
}; };
@ -37,8 +38,8 @@ namespace SEXPR
{ {
public: public:
INVALID_TYPE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {} INVALID_TYPE_EXCEPTION( const std::string aMessage ) : msg( aMessage ) {}
const char* what() { return msg.c_str(); } const char* what() const noexcept { return msg.c_str(); }
virtual ~INVALID_TYPE_EXCEPTION() throw() {} virtual ~INVALID_TYPE_EXCEPTION() noexcept {}
private: private:
std::string msg; std::string msg;
}; };