Q_DECL_NOEXCEPT_EXPR(true) instead noexcept(true).

--HG--
branch : develop
This commit is contained in:
dismine 2013-11-06 18:37:51 +02:00
parent bc3bc3f994
commit b9a99cd0cf
7 changed files with 8 additions and 8 deletions

View File

@ -29,8 +29,8 @@ class VException : public QException
{ {
public: public:
VException(const QString &what); VException(const QString &what);
VException(const VException &e):what(e.What()){} VException(const VException &e):what(e.What()){}
virtual ~VException() noexcept(true){} virtual ~VException() Q_DECL_NOEXCEPT_EXPR(true){}
inline void raise() const { throw *this; } inline void raise() const { throw *this; }
inline VException *clone() const { return new VException(*this); } inline VException *clone() const { return new VException(*this); }
virtual QString ErrorMessage() const; virtual QString ErrorMessage() const;

View File

@ -33,7 +33,7 @@ public:
:VException(what), id(0), key(key){} :VException(what), id(0), key(key){}
VExceptionBadId(const VExceptionBadId &e) VExceptionBadId(const VExceptionBadId &e)
:VException(e), id(e.BadId()), key(e.BadKey()){} :VException(e), id(e.BadId()), key(e.BadKey()){}
virtual ~VExceptionBadId() noexcept(true){} virtual ~VExceptionBadId() Q_DECL_NOEXCEPT_EXPR(true){}
virtual QString ErrorMessage() const; virtual QString ErrorMessage() const;
inline qint64 BadId() const {return id; } inline qint64 BadId() const {return id; }
inline QString BadKey() const {return key; } inline QString BadKey() const {return key; }

View File

@ -30,7 +30,7 @@ public:
VExceptionConversionError(const QString &what, const QString &str); VExceptionConversionError(const QString &what, const QString &str);
VExceptionConversionError(const VExceptionConversionError &e) VExceptionConversionError(const VExceptionConversionError &e)
:VException(e), str(e.String()){} :VException(e), str(e.String()){}
virtual ~VExceptionConversionError() noexcept(true) {} virtual ~VExceptionConversionError() Q_DECL_NOEXCEPT_EXPR(true) {}
virtual QString ErrorMessage() const; virtual QString ErrorMessage() const;
inline QString String() const {return str;} inline QString String() const {return str;}
protected: protected:

View File

@ -31,7 +31,7 @@ public:
VExceptionEmptyParameter(const VExceptionEmptyParameter &e) VExceptionEmptyParameter(const VExceptionEmptyParameter &e)
:VException(e), name(e.Name()), tagText(e.TagText()), tagName(e.TagName()), :VException(e), name(e.Name()), tagText(e.TagText()), tagName(e.TagName()),
lineNumber(e.LineNumber()){} lineNumber(e.LineNumber()){}
virtual ~VExceptionEmptyParameter() noexcept(true) {} virtual ~VExceptionEmptyParameter() Q_DECL_NOEXCEPT_EXPR(true) {}
virtual QString ErrorMessage() const; virtual QString ErrorMessage() const;
virtual QString DetailedInformation() const; virtual QString DetailedInformation() const;
inline QString Name() const {return name;} inline QString Name() const {return name;}

View File

@ -31,7 +31,7 @@ public:
VExceptionObjectError(const VExceptionObjectError &e) VExceptionObjectError(const VExceptionObjectError &e)
:VException(e), tagText(e.TagText()), tagName(e.TagName()), lineNumber(e.LineNumber()), :VException(e), tagText(e.TagText()), tagName(e.TagName()), lineNumber(e.LineNumber()),
moreInfo(e.MoreInformation()){} moreInfo(e.MoreInformation()){}
virtual ~VExceptionObjectError() noexcept(true) {} virtual ~VExceptionObjectError() Q_DECL_NOEXCEPT_EXPR(true) {}
virtual QString ErrorMessage() const; virtual QString ErrorMessage() const;
virtual QString DetailedInformation() const; virtual QString DetailedInformation() const;
inline QString TagText() const {return tagText;} inline QString TagText() const {return tagText;}

View File

@ -30,7 +30,7 @@ public:
VExceptionUniqueId(const QString &what, const QDomElement &domElement); VExceptionUniqueId(const QString &what, const QDomElement &domElement);
VExceptionUniqueId(const VExceptionUniqueId &e) VExceptionUniqueId(const VExceptionUniqueId &e)
:VException(e), tagText(e.TagText()), tagName(e.TagName()), lineNumber(e.LineNumber()){} :VException(e), tagText(e.TagText()), tagName(e.TagName()), lineNumber(e.LineNumber()){}
virtual ~VExceptionUniqueId() noexcept(true){} virtual ~VExceptionUniqueId() Q_DECL_NOEXCEPT_EXPR(true){}
virtual QString ErrorMessage() const; virtual QString ErrorMessage() const;
virtual QString DetailedInformation() const; virtual QString DetailedInformation() const;
inline QString TagText() const {return tagText;} inline QString TagText() const {return tagText;}

View File

@ -30,7 +30,7 @@ public:
VExceptionWrongParameterId(const QString &what, const QDomElement &domElement); VExceptionWrongParameterId(const QString &what, const QDomElement &domElement);
VExceptionWrongParameterId(const VExceptionWrongParameterId &e) VExceptionWrongParameterId(const VExceptionWrongParameterId &e)
:VException(e), tagText(e.TagText()), tagName(e.TagName()), lineNumber(e.LineNumber()){} :VException(e), tagText(e.TagText()), tagName(e.TagName()), lineNumber(e.LineNumber()){}
virtual ~VExceptionWrongParameterId() noexcept(true){} virtual ~VExceptionWrongParameterId() Q_DECL_NOEXCEPT_EXPR(true){}
virtual QString ErrorMessage() const; virtual QString ErrorMessage() const;
virtual QString DetailedInformation() const; virtual QString DetailedInformation() const;
inline QString TagText() const {return tagText;} inline QString TagText() const {return tagText;}