Commit 7fd7843d authored by Victor Poughon's avatar Victor Poughon

REFAC: change throw() to noexcept

parent 95356540
Pipeline #2717 failed with stages
in 5 minutes and 13 seconds
......@@ -44,8 +44,8 @@ struct siftfast_exception : std::exception
{
siftfast_exception() : std::exception(), _s("unknown exception") {}
siftfast_exception(const string& s) : std::exception() { _s = "siftfast: " + s; }
virtual ~siftfast_exception() {}
char const* what() const { return _s.c_str(); }
virtual ~siftfast_exception() noexcept {}
char const* what() noexcept const { return _s.c_str(); }
string _s;
};
......
......@@ -102,7 +102,7 @@ public slots:
/**
* \brief Call the implemented do job/task routine.
*/
void Do();
void Do() noexcept;
/*-[ SIGNALS SECTION ]-----------------------------------------------------*/
......
......@@ -86,7 +86,7 @@ public:
SystemError(const std::string& message = std::string()) : std::runtime_error(itksys::SystemTools::GetLastSystemError() + ": " + message){};
/** \brief Destructor. */
~SystemError() override{};
~SystemError() noexcept override{};
/*-[ PROTECTED SECTION ]---------------------------------------------------*/
......
......@@ -77,7 +77,7 @@ AbstractWorker::~AbstractWorker()
}
/*****************************************************************************/
void AbstractWorker::Do()
void AbstractWorker::Do() noexcept
{
QObject* result = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment