diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-21 18:33:29 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-21 18:40:14 +0300 |
commit | e4e088d37070bab69b1457621706d65472874243 (patch) | |
tree | b031344561547208e567fa473e1640b302407a86 /plugins/SmileyAdd/src/anim.cpp | |
parent | ba75602b16e4b9b484c2c05f70c117f612c81e1d (diff) |
SmileyAdd: C++'11 iterators
Diffstat (limited to 'plugins/SmileyAdd/src/anim.cpp')
-rw-r--r-- | plugins/SmileyAdd/src/anim.cpp | 16 |
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);
}
|