diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-30 16:07:58 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-11-02 09:01:31 +0100 |
commit | 1086a29bfdf5d78afbb95ac3b710e7892981aac1 (patch) | |
tree | 57d27ac3fe0d4297a398bb7966747dd93e95afd1 /src/animation/frontend/qchannel.cpp | |
parent | 9dd441c4297296d8efda629d0929aaad6d278b51 (diff) |
Replace old Q_DECL statements with modern C++
Since we have long depended on C++11 now, all of these can go.
Change-Id: I8808af2cd5ce192864c636b521dadd7de189563b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/animation/frontend/qchannel.cpp')
-rw-r--r-- | src/animation/frontend/qchannel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/animation/frontend/qchannel.cpp b/src/animation/frontend/qchannel.cpp index 3970ea8ab..8012f1b5c 100644 --- a/src/animation/frontend/qchannel.cpp +++ b/src/animation/frontend/qchannel.cpp @@ -136,22 +136,22 @@ void QChannel::clearChannelComponents() d->m_channelComponents.clear(); } -QChannel::const_iterator QChannel::begin() const Q_DECL_NOTHROW +QChannel::const_iterator QChannel::begin() const noexcept { return d->m_channelComponents.cbegin(); } -QChannel::const_iterator QChannel::end() const Q_DECL_NOTHROW +QChannel::const_iterator QChannel::end() const noexcept { return d->m_channelComponents.cend(); } -bool operator==(const QChannel &lhs, const QChannel &rhs) Q_DECL_NOTHROW +bool operator==(const QChannel &lhs, const QChannel &rhs) noexcept { return lhs.d->m_name == rhs.d->m_name && lhs.d->m_channelComponents == rhs.d->m_channelComponents; } -bool operator!=(const QChannel &lhs, const QChannel &rhs) Q_DECL_NOTHROW +bool operator!=(const QChannel &lhs, const QChannel &rhs) noexcept { return lhs.d->m_name != rhs.d->m_name || lhs.d->m_channelComponents != rhs.d->m_channelComponents; } |