diff options
author | Robert Griebl <robert.griebl@pelagicore.com> | 2017-03-13 01:22:24 +0100 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2017-03-14 08:49:31 +0000 |
commit | 2d43321b0f9c4dcb38386817209550e4ef80c38e (patch) | |
tree | c8b8629ccb3a0627e811fb37749d3b32e5dff912 /src/manager-lib/applicationdatabase.h | |
parent | b8565f19911bb84be16e09967ff029b8991f063d (diff) |
Replace C++03 throw(Exception) specifications with C++11 noexcept(false)
Newer clang versions already complain about throw(foo) being deprecated in
C++17. Of course MSVC2013 has no support for plain noexcept(bool), so we
have to make do with the unwieldly Q_DECL_NOEXCEPT_EXPR(false) as long as
we need to support it.
Change-Id: Id5d6890213fa019753dec624b71db8aefe010e7c
Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
Diffstat (limited to 'src/manager-lib/applicationdatabase.h')
-rw-r--r-- | src/manager-lib/applicationdatabase.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/manager-lib/applicationdatabase.h b/src/manager-lib/applicationdatabase.h index ae2cb146..93cd0fb7 100644 --- a/src/manager-lib/applicationdatabase.h +++ b/src/manager-lib/applicationdatabase.h @@ -63,8 +63,8 @@ public: QString errorString() const; QString name() const; - QVector<const Application *> read() throw (Exception); - void write(const QVector<const Application *> &apps) throw (Exception); + QVector<const Application *> read() Q_DECL_NOEXCEPT_EXPR(false); + void write(const QVector<const Application *> &apps) Q_DECL_NOEXCEPT_EXPR(false); void invalidate(); |