summaryrefslogtreecommitdiff
path: root/plugins/RemovePersonalSettings
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-25 09:05:39 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-25 09:05:39 +0000
commitd6ed23e489d106cd4b06a03c820706467e853f49 (patch)
treeb0d17dcee8b9b6b561d20f7fec02b426423f0d9d /plugins/RemovePersonalSettings
parent7487284ac14c755d0cf34b510f75c5a3dead96e6 (diff)
end of version zoo
git-svn-id: http://svn.miranda-ng.org/main/trunk@7880 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/RemovePersonalSettings')
-rw-r--r--plugins/RemovePersonalSettings/src/rps.cpp12
-rw-r--r--plugins/RemovePersonalSettings/src/version.h24
2 files changed, 16 insertions, 20 deletions
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 <stdver.h>
-#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"