From f074f54bcb0f6e01dbb0cda4f0727ce8043b399b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 11 Aug 2013 07:54:56 +0000 Subject: fix for russian variable name (though it works ok :) git-svn-id: http://svn.miranda-ng.org/main/trunk@5642 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AVS/src/cache.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'plugins') diff --git a/plugins/AVS/src/cache.cpp b/plugins/AVS/src/cache.cpp index 6064c247a8..a59119508f 100644 --- a/plugins/AVS/src/cache.cpp +++ b/plugins/AVS/src/cache.cpp @@ -99,19 +99,19 @@ CacheNode *FindAvatarInCache(HANDLE hContact, BOOL add, BOOL findAny) mir_cslock lck(cachecs); - CacheNode *ρρ = g_Cache, *foundNode = NULL; - while(ρρ) { - if (ρρ->ace.hContact == hContact) { - ρρ->ace.t_lastAccess = time(NULL); - foundNode = ρρ->loaded || findAny ? ρρ : NULL; + CacheNode *cc = g_Cache, *foundNode = NULL; + while(cc) { + if (cc->ace.hContact == hContact) { + cc->ace.t_lastAccess = time(NULL); + foundNode = cc->loaded || findAny ? cc : NULL; return foundNode; } // found an empty and usable node - if (foundNode == NULL && ρρ->ace.hContact == 0) - foundNode = ρρ; + if (foundNode == NULL && cc->ace.hContact == 0) + foundNode = cc; - ρρ = ρρ->pNextNode; + cc = cc->pNextNode; } // not found @@ -227,14 +227,14 @@ int SetAvatarAttribute(HANDLE hContact, DWORD attrib, int mode) if (g_shutDown) return 0; - for (CacheNode *ρρ = g_Cache; ρρ; ρρ = ρρ->pNextNode) { - if (ρρ->ace.hContact != hContact) + for (CacheNode *cc = g_Cache; cc; cc = cc->pNextNode) { + if (cc->ace.hContact != hContact) continue; - DWORD dwFlags = ρρ->ace.dwFlags; - ρρ->ace.dwFlags = mode ? (ρρ->ace.dwFlags | attrib) : (ρρ->ace.dwFlags & ~attrib); - if (ρρ->ace.dwFlags != dwFlags) - NotifyMetaAware(hContact, ρρ); + DWORD dwFlags = cc->ace.dwFlags; + cc->ace.dwFlags = mode ? (cc->ace.dwFlags | attrib) : (cc->ace.dwFlags & ~attrib); + if (cc->ace.dwFlags != dwFlags) + NotifyMetaAware(hContact, cc); break; } return 0; -- cgit v1.2.3