diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-03 18:05:17 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-03 18:05:17 +0000 |
commit | a4f31a97e407280dc7e306a6c96948b53f9c0cab (patch) | |
tree | 8e76329ed4784e0c8e1ee81070c5b9985989263a /plugins/SmileyAdd/src/smileys.h | |
parent | f07feab44bd3ef047229f511fadb3a151f200654 (diff) |
SmileyAdd:
- array indexes totally unborkred;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4296 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SmileyAdd/src/smileys.h')
-rw-r--r-- | plugins/SmileyAdd/src/smileys.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/SmileyAdd/src/smileys.h b/plugins/SmileyAdd/src/smileys.h index 8b3d4b7add..ad0eb059bc 100644 --- a/plugins/SmileyAdd/src/smileys.h +++ b/plugins/SmileyAdd/src/smileys.h @@ -102,8 +102,7 @@ template<class T> struct SMOBJLIST : public OBJLIST<T> SMOBJLIST<T>& operator += (const SMOBJLIST<T>& lst)
{
- for (int i=0; i<lst.getCount(); ++i)
- {
+ for (int i=0; i < lst.getCount(); i++) {
T *p = new T(lst[i]);
insert(p);
}
@@ -112,7 +111,7 @@ template<class T> struct SMOBJLIST : public OBJLIST<T> void splice(SMOBJLIST<T>& lst)
{
- for (int i=0; i<lst.getCount(); ++i)
+ for (int i=0; i < lst.getCount(); i++)
insert(&lst[i]);
lst.LIST<T>::destroy();
}
|