summaryrefslogtreecommitdiff
path: root/plugins/TrafficCounter/src/TrafficCounter.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-01-14 20:24:34 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-01-14 20:24:34 +0000
commitb97a22a39b816d26c733a2f4aa38afdbcbea42d6 (patch)
treed2c4d15b125b9f349df7fd2604a4c73d26025c96 /plugins/TrafficCounter/src/TrafficCounter.cpp
parent20603ba3e4e0a120870f18ddf2211011cb0b4549 (diff)
TrafficCounter:
-Minor warnungs fixed git-svn-id: http://svn.miranda-ng.org/main/trunk@11857 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TrafficCounter/src/TrafficCounter.cpp')
-rw-r--r--plugins/TrafficCounter/src/TrafficCounter.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/TrafficCounter/src/TrafficCounter.cpp b/plugins/TrafficCounter/src/TrafficCounter.cpp
index a463bb2f79..b9777f9570 100644
--- a/plugins/TrafficCounter/src/TrafficCounter.cpp
+++ b/plugins/TrafficCounter/src/TrafficCounter.cpp
@@ -668,12 +668,10 @@ int PaintTrafficCounterWindow(HWND hwnd, HDC hDC)
{
RowItemInfo *ItemsList;
WORD ItemsNumber, RowsNumber;
- TCHAR **ExtraText;
- HICON *ahIcon;
// Готовим список строк для Variables и иконок.
- ExtraText = (TCHAR**)mir_alloc(sizeof(TCHAR*));
- ahIcon = (HICON*)mir_alloc(sizeof(HICON));
+ TCHAR **ExtraText = (TCHAR**)mir_alloc(sizeof(TCHAR*));
+ HICON *ahIcon = (HICON*)mir_alloc(sizeof(HICON));
RowsNumber = 0;
// Цикл по аккаунтам.
for (i = 0; i < NumberOfAccounts; i++)
@@ -708,9 +706,7 @@ int PaintTrafficCounterWindow(HWND hwnd, HDC hDC)
// Рисуем свой счётчик для каждого из выбранных протоколов
for (i = 0; i < RowsNumber; i++)
{
- TCHAR *buf;
-
- buf = variables_parse(Traffic_CounterFormat, ExtraText[i], NULL);
+ TCHAR *buf = variables_parse(Traffic_CounterFormat, ExtraText[i], NULL);
if (ItemsNumber = GetRowItems(buf, &ItemsList))
{
// Рисуем текст.