Changeset c793b28


Ignore:
Timestamp:
10/02/17 23:03:50 (5 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master
Children:
0c1d3ea
Parents:
4d0db91
git-author:
Philipp Spitzer <philipp@…> (10/02/17 22:19:13)
git-committer:
Philipp Spitzer <philipp@…> (10/02/17 23:03:50)
Message:

C++98 compatibility: Use throw() in destructor of std exceptions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/orm/ormrecord.h

    r4d0db91 rc793b28  
    3030#include <stdexcept>
    3131
    32 class OrmException : public std::runtime_error
     32class OrmException: public std::runtime_error
    3333{
    3434public:
    3535    OrmException(const QString& text) : std::runtime_error(text.toStdString()), mText(text) {}
    36     virtual ~OrmException(){}
     36    virtual ~OrmException() throw() {}
    3737    virtual const QString& text() const { return mText; }
    3838private:
     
    4444public:
    4545    OrmNoObjectException() : OrmException("SQL query expects one record but found none."){}
    46     ~OrmNoObjectException(){}
     46    ~OrmNoObjectException() throw() {}
    4747};
    4848
     
    5151public:
    5252    OrmSqlException(const QString& text) : OrmException( QString("Sql error: ") + text ) {}
    53     ~OrmSqlException(){}
     53    ~OrmSqlException() throw() {}
    5454};
    5555
Note: See TracChangeset for help on using the changeset viewer.