summaryrefslogtreecommitdiffstats
path: root/src/animation/frontend
diff options
context:
space:
mode:
authorMike Krus <mike.krus@kdab.com>2017-12-27 14:27:10 +0000
committerSean Harmer <sean.harmer@kdab.com>2018-01-13 16:15:14 +0000
commit6298039b7557084d56db5665f7c778e2eba4db9e (patch)
tree1c0ef5eb7bc0faf6def369a0c43f84a308db1462 /src/animation/frontend
parent6c1bc159be91937578ee74b5a69c611c2d5365cc (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')
-rw-r--r--src/animation/frontend/qanimationclipdata.cpp4
-rw-r--r--src/animation/frontend/qchannel.cpp4
-rw-r--r--src/animation/frontend/qchannelcomponent.cpp4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/animation/frontend/qanimationclipdata.cpp b/src/animation/frontend/qanimationclipdata.cpp
index fe5e7c1e0..1dbbe4a30 100644
--- a/src/animation/frontend/qanimationclipdata.cpp
+++ b/src/animation/frontend/qanimationclipdata.cpp
@@ -122,12 +122,12 @@ bool QAnimationClipData::isValid() const Q_DECL_NOTHROW
QAnimationClipData::const_iterator QAnimationClipData::begin() const Q_DECL_NOTHROW
{
- return d->m_channels.begin();
+ return d->m_channels.cbegin();
}
QAnimationClipData::const_iterator QAnimationClipData::end() const Q_DECL_NOTHROW
{
- return d->m_channels.end();
+ return d->m_channels.cend();
}
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
diff --git a/src/animation/frontend/qchannelcomponent.cpp b/src/animation/frontend/qchannelcomponent.cpp
index 1ecc5520c..b8511dd1f 100644
--- a/src/animation/frontend/qchannelcomponent.cpp
+++ b/src/animation/frontend/qchannelcomponent.cpp
@@ -117,12 +117,12 @@ void QChannelComponent::clearKeyFrames()
QChannelComponent::const_iterator QChannelComponent::begin() const Q_DECL_NOTHROW
{
- return d->m_keyFrames.begin();
+ return d->m_keyFrames.cbegin();
}
QChannelComponent::const_iterator QChannelComponent::end() const Q_DECL_NOTHROW
{
- return d->m_keyFrames.end();
+ return d->m_keyFrames.cend();
}
bool operator==(const QChannelComponent &lhs, const QChannelComponent &rhs) Q_DECL_NOTHROW