kicad2step: shadowed virtual because of wrong qualifiers
This commit is contained in:
parent
200c3f78a0
commit
527c98fe15
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* 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
|
||||
* 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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue