Commit e2d60fdc authored by Marco Bubke's avatar Marco Bubke Committed by Nikolai Kosjar
Browse files

Cmb: Workaround for gcc 4.7 bug



The default constructor has no noexcept specifier for gcc 4.7

Change-Id: If204c19e21bc368d755c8d6508fd490f71be6f6c
Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
parent 6c780c76
......@@ -46,6 +46,12 @@ public:
const char *what() const Q_DECL_NOEXCEPT override;
#ifdef __GNUC__
# if !__GNUC_PREREQ(4,8)
~ProjectPartDoNotExistException() noexcept {}
# endif
#endif
private:
Utf8StringVector projectPartIds_;
mutable Utf8String what_;
......
......@@ -45,6 +45,12 @@ public:
const char *what() const Q_DECL_NOEXCEPT override;
#ifdef __GNUC__
# if !__GNUC_PREREQ(4,8)
~TranslationUnitDoesNotExistException() noexcept {}
# endif
#endif
private:
FileContainer fileContainer_;
mutable Utf8String what_;
......
......@@ -46,6 +46,12 @@ public:
const char *what() const Q_DECL_NOEXCEPT override;
#ifdef __GNUC__
# if !__GNUC_PREREQ(4,8)
~TranslationUnitFileNotExitsException() noexcept {}
# endif
#endif
private:
Utf8String filePath_;
mutable Utf8String what_;
......
......@@ -41,6 +41,12 @@ class TranslationUnitIsNullException : public std::exception
{
public:
const char *what() const Q_DECL_NOEXCEPT override;
#ifdef __GNUC__
# if !__GNUC_PREREQ(4,8)
~TranslationUnitIsNullException() noexcept {}
# endif
#endif
};
} // namespace CodeModelBackEnd
......
......@@ -47,6 +47,12 @@ public:
const char *what() const Q_DECL_NOEXCEPT override;
#ifdef __GNUC__
# if !__GNUC_PREREQ(4,8)
~TranslationUnitParseErrorException() noexcept {}
# endif
#endif
private:
Utf8String filePath_;
Utf8String projectPartId_;
......
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