From d6ed23e489d106cd4b06a03c820706467e853f49 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 25 Jan 2014 09:05:39 +0000 Subject: end of version zoo git-svn-id: http://svn.miranda-ng.org/main/trunk@7880 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/RemovePersonalSettings/src/rps.cpp | 12 ++++-------- plugins/RemovePersonalSettings/src/version.h | 24 ++++++++++++------------ 2 files changed, 16 insertions(+), 20 deletions(-) (limited to 'plugins/RemovePersonalSettings') diff --git a/plugins/RemovePersonalSettings/src/rps.cpp b/plugins/RemovePersonalSettings/src/rps.cpp index 5379b6e442..181248d616 100644 --- a/plugins/RemovePersonalSettings/src/rps.cpp +++ b/plugins/RemovePersonalSettings/src/rps.cpp @@ -528,21 +528,17 @@ void DisablePlugins() BOOL GetSettingBool(const char *section, const char *key, BOOL defaultValue) { char tmp[16]; - - if ( GetPrivateProfileString(section, key, defaultValue ? "true" : "false", tmp, sizeof(tmp), gIniFile) == 0 ) { + if (GetPrivateProfileString(section, key, defaultValue ? "true" : "false", tmp, sizeof(tmp), gIniFile) == 0) return defaultValue; - } - else { - return stricmp(tmp, "true") == 0; - } + + return stricmp(tmp, "true") == 0; } BOOL GetSettings(const char *section, char *buffer, size_t bufferSize) { buffer[0] = '\0\0'; - - return GetPrivateProfileSection(section, buffer, bufferSize, gIniFile) != 0; + return (BOOL)GetPrivateProfileSection(section, buffer, bufferSize, gIniFile) != 0; } diff --git a/plugins/RemovePersonalSettings/src/version.h b/plugins/RemovePersonalSettings/src/version.h index 70e0d78307..9fc642e53a 100644 --- a/plugins/RemovePersonalSettings/src/version.h +++ b/plugins/RemovePersonalSettings/src/version.h @@ -1,14 +1,14 @@ -#define __MAJOR_VERSION 0 -#define __MINOR_VERSION 1 -#define __RELEASE_NUM 0 -#define __BUILD_NUM 4 +#define __MAJOR_VERSION 0 +#define __MINOR_VERSION 1 +#define __RELEASE_NUM 0 +#define __BUILD_NUM 4 -#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM +#include -#define __PLUGIN_NAME "Remove Personal Settings" -#define __FILENAME "RemovePersonalSettings.dll" -#define __DESCRIPTION "Remove personal settings to allow to send a profile to other user(s) without sending personal data." -#define __AUTHOR "Ricardo Pescuma Domenecci" -#define __AUTHOREMAIL "" -#define __AUTHORWEB "http://miranda-ng.org/p/RemovePersonalSettings/" -#define __COPYRIGHT "© 2007-2009 Ricardo Pescuma Domenecci" +#define __PLUGIN_NAME "Remove Personal Settings" +#define __FILENAME "RemovePersonalSettings.dll" +#define __DESCRIPTION "Remove personal settings to allow to send a profile to other user(s) without sending personal data." +#define __AUTHOR "Ricardo Pescuma Domenecci" +#define __AUTHOREMAIL "" +#define __AUTHORWEB "http://miranda-ng.org/p/RemovePersonalSettings/" +#define __COPYRIGHT "© 2007-2009 Ricardo Pescuma Domenecci" -- cgit v1.2.3