Cmb: Workaround for gcc 4.7 bug

The default constructor has no noexcept specifier for gcc 4.7

Change-Id: If204c19e21bc368d755c8d6508fd490f71be6f6c
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
This commit is contained in:
Marco Bubke
2015-06-10 11:39:55 +02:00
committed by Nikolai Kosjar
parent 6c780c765e
commit e2d60fdcc3
5 changed files with 30 additions and 0 deletions

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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_;

View File

@@ -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

View File

@@ -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_;