From b665a90f50f09435aef5bc3b5b9da710e4558690 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 5 Apr 2013 16:54:27 +0000 Subject: various menu items quirks, simplifications & optimization git-svn-id: http://svn.miranda-ng.org/main/trunk@4319 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AVS/src/main.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/AVS') diff --git a/plugins/AVS/src/main.cpp b/plugins/AVS/src/main.cpp index 53447baaf3..beff99167f 100644 --- a/plugins/AVS/src/main.cpp +++ b/plugins/AVS/src/main.cpp @@ -1886,13 +1886,13 @@ static void LoadDefaultInfo() { protoPicCacheEntry* pce = new protoPicCacheEntry; if (CreateAvatarInCache(0, pce, AVS_DEFAULT) != 1) - db_unset(0, PPICT_MODULE, AVS_DEFAULT); - - pce->szProtoname = mir_strdup(AVS_DEFAULT); - pce->tszAccName = mir_tstrdup(TranslateT("Global avatar")); - g_ProtoPictures.insert(pce); -} - + db_unset(0, PPICT_MODULE, AVS_DEFAULT); + + pce->szProtoname = mir_strdup(AVS_DEFAULT); + pce->tszAccName = mir_tstrdup(TranslateT("Global avatar")); + g_ProtoPictures.insert(pce); +} + static void LoadProtoInfo(PROTOCOLDESCRIPTOR* proto) { if ( proto->type == PROTOTYPE_PROTOCOL && proto->cbSize == sizeof( *proto )) @@ -1987,7 +1987,7 @@ static int ModulesLoaded(WPARAM wParam, LPARAM lParam) LoadDefaultInfo(); PROTOCOLDESCRIPTOR** proto; int protoCount; - CallService(MS_PROTO_ENUMPROTOS, ( WPARAM )&protoCount, ( LPARAM )&proto); + CallService(MS_PROTO_ENUMPROTOS, (WPARAM)&protoCount, (LPARAM)&proto); for (i=0; i < protoCount; i++ ) LoadProtoInfo( proto[i] ); for (i=0; i < accCount; i++) -- cgit v1.2.3