summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/AVS/src/cache.cpp28
1 files changed, 14 insertions, 14 deletions
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;