summaryrefslogtreecommitdiff
path: root/plugins/CountryFlags/src/extraimg.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-07 14:53:21 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-07 14:53:21 +0000
commitc625ddaf81f7481bffcd528ed3012fdc3a6bc8e1 (patch)
tree9a2f26824142e0bd53b5332c2a00d86137370a51 /plugins/CountryFlags/src/extraimg.cpp
parentf3bd86cba781bb179169419de8101ab32ba0760e (diff)
EMPTY_EXTRA_ICON applied to all another plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@2232 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CountryFlags/src/extraimg.cpp')
-rw-r--r--plugins/CountryFlags/src/extraimg.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/CountryFlags/src/extraimg.cpp b/plugins/CountryFlags/src/extraimg.cpp
index 3182a41b79..dcb8f33773 100644
--- a/plugins/CountryFlags/src/extraimg.cpp
+++ b/plugins/CountryFlags/src/extraimg.cpp
@@ -31,9 +31,8 @@ extern struct CountryListEntry *countries;
static INT_PTR ServiceDetectContactOriginCountry(WPARAM wParam,LPARAM lParam)
{
- int countryNumber=0xFFFF;
- char *pszProto;
- pszProto=(char*)CallService(MS_PROTO_GETCONTACTBASEPROTO,wParam,0);
+ int countryNumber = 0xFFFF;
+ char *pszProto = (char*)CallService(MS_PROTO_GETCONTACTBASEPROTO,wParam,0);
/* ip detect */
if ( db_get_b(NULL,"Flags","UseIpToCountry",SETTING_USEIPTOCOUNTRY_DEFAULT))
countryNumber=ServiceIpToCountry(DBGetContactSettingDword((HANDLE)wParam,pszProto,"RealIP",0),0);
@@ -42,7 +41,7 @@ static INT_PTR ServiceDetectContactOriginCountry(WPARAM wParam,LPARAM lParam)
countryNumber=DBGetContactSettingWord((HANDLE)wParam,pszProto,"Country",0);
if (countryNumber == 0 || countryNumber == 0xFFFF)
countryNumber=DBGetContactSettingWord((HANDLE)wParam,pszProto,"CompanyCountry",0);
- return (countryNumber == 0)?0xFFFF:countryNumber;
+ return (countryNumber == 0) ? 0xFFFF : countryNumber;
}
/************************* Extra Image ****************************/