diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-20 17:06:15 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-20 17:06:15 +0000 |
commit | d2923a79102483b203b841926981c436aebaa3f6 (patch) | |
tree | 0ed0077b8ee744505ba59db7e24c9c505f5e8019 /protocols/SkypeWeb/src/skype_proto.h | |
parent | d55bb61e287b9e5c659d08c7d0f7fa952814ff29 (diff) |
SkypeWeb: code optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@14998 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeWeb/src/skype_proto.h')
-rw-r--r-- | protocols/SkypeWeb/src/skype_proto.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h index 69051e4afb..1b3a9d9d38 100644 --- a/protocols/SkypeWeb/src/skype_proto.h +++ b/protocols/SkypeWeb/src/skype_proto.h @@ -302,7 +302,12 @@ private: void ProcessThreadUpdate (const JSONNode &node);
// utils
- static void FreeCharList(const LIST<char> &lst);
+ template <typename T>
+ __inline static void FreeList(const LIST<T> &lst)
+ {
+ for (int i = 0; i < lst.getCount(); i++)
+ mir_free(lst[i]);
+ }
__forceinline bool IsOnline()
{ return (m_iStatus > ID_STATUS_OFFLINE && m_hPollingThread);
|