diff options
author | Mike Krus <mike.krus@kdab.com> | 2017-12-27 14:27:10 +0000 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2018-01-13 16:15:14 +0000 |
commit | 6298039b7557084d56db5665f7c778e2eba4db9e (patch) | |
tree | 1c0ef5eb7bc0faf6def369a0c43f84a308db1462 /src/animation/frontend/qchannel.cpp | |
parent | 6c1bc159be91937578ee74b5a69c611c2d5365cc (diff) |
Use strict const iterators
Found with clazy-strict-iterators
Change-Id: Iaf4d70668e0374e87769ec4d9bade29d1d0eeee5
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/animation/frontend/qchannel.cpp')
-rw-r--r-- | src/animation/frontend/qchannel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/animation/frontend/qchannel.cpp b/src/animation/frontend/qchannel.cpp index f5e4ac7a3..801ad385b 100644 --- a/src/animation/frontend/qchannel.cpp +++ b/src/animation/frontend/qchannel.cpp @@ -128,12 +128,12 @@ void QChannel::clearChannelComponents() QChannel::const_iterator QChannel::begin() const Q_DECL_NOTHROW { - return d->m_channelComponents.begin(); + return d->m_channelComponents.cbegin(); } QChannel::const_iterator QChannel::end() const Q_DECL_NOTHROW { - return d->m_channelComponents.end(); + return d->m_channelComponents.cend(); } bool operator==(const QChannel &lhs, const QChannel &rhs) Q_DECL_NOTHROW |