summaryrefslogtreecommitdiff
path: root/plugins/SmileyAdd/src/anim.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SmileyAdd/src/anim.cpp')
-rw-r--r--plugins/SmileyAdd/src/anim.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/SmileyAdd/src/anim.cpp b/plugins/SmileyAdd/src/anim.cpp
index 4e04871e89..59ed0135ad 100644
--- a/plugins/SmileyAdd/src/anim.cpp
+++ b/plugins/SmileyAdd/src/anim.cpp
@@ -142,24 +142,24 @@ void AnimatedPack::Add(SmileyType *sml, RECT rect, bool clip)
void AnimatedPack::Draw(HDC hdc)
{
- for (int i = 0; i < m_AniList.getCount(); i++)
- m_AniList[i].Draw(hdc);
+ for (auto &it : m_AniList)
+ it->Draw(hdc);
}
void AnimatedPack::SetOffset(int off)
{
- for (int i = 0; i < m_AniList.getCount(); i++)
- m_AniList[i].SetOffset(off, m_wsize);
+ for (auto &it : m_AniList)
+ it->SetOffset(off, m_wsize);
}
void AnimatedPack::SetSel(RECT &rect)
{
- for (int i = 0; i < m_AniList.getCount(); i++)
- m_AniList[i].SetSel(rect.left, rect.top);
+ for (auto &it : m_AniList)
+ it->SetSel(rect.left, rect.top);
}
void AnimatedPack::ProcessTimerTick(HWND hwnd)
{
- for (int i = 0; i < m_AniList.getCount(); i++)
- m_AniList[i].ProcessTimerTick(hwnd);
+ for (auto &it : m_AniList)
+ it->ProcessTimerTick(hwnd);
}