diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-14 14:57:37 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-14 14:57:37 +0000 |
commit | 3d64cefb8851fcf43b9c6109abdddaf71e340a71 (patch) | |
tree | 570472c4a55ca462fe9e5049a91702859eeb0fed /plugins/TabSRMM/src/themeio.cpp | |
parent | 1d680ee8c0f9b0c2a421a778cb50152581dc2873 (diff) |
- various leaks
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@965 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/themeio.cpp')
-rw-r--r-- | plugins/TabSRMM/src/themeio.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/themeio.cpp b/plugins/TabSRMM/src/themeio.cpp index 031d6d88be..05bf677717 100644 --- a/plugins/TabSRMM/src/themeio.cpp +++ b/plugins/TabSRMM/src/themeio.cpp @@ -218,12 +218,12 @@ void TSAPI WriteThemeToINI(const TCHAR *szIniFilenameT, struct TWindowData *dat) }
def = SRMSGDEFSET_BKGCOLOUR;
- for(i = 0; i < safe_sizeof(_extSettings); i++) {
+ for (i = 0; i < safe_sizeof(_extSettings); i++) {
WritePrivateProfileStringA(_extSettings[i].szIniSection, _extSettings[i].szIniName,
_itoa(M->GetDword(_extSettings[i].szDbModule, _extSettings[i].szDbSetting, _extSettings[i].dwDef), szBuf, 10), szIniFilename);
}
- for(i = 0; i < safe_sizeof(_extSettings_v5); i++) {
+ for (i = 0; i < safe_sizeof(_extSettings_v5); i++) {
WritePrivateProfileStringA(_extSettings_v5[i].szIniSection, _extSettings_v5[i].szIniName,
_itoa(M->GetDword(_extSettings_v5[i].szDbModule, _extSettings_v5[i].szDbSetting, _extSettings_v5[i].dwDef), szBuf, 10), szIniFilename);
}
@@ -324,13 +324,13 @@ void TSAPI ReadThemeFromINI(const TCHAR *szIniFilenameT, TContainerData *dat, in if (dwFlags & THEME_READ_FONTS) {
COLORREF defclr;
- for(i = 0; i < safe_sizeof(_extSettings); i++) {
+ for (i = 0; i < safe_sizeof(_extSettings); i++) {
M->WriteDword(_extSettings[i].szDbModule, _extSettings[i].szDbSetting,
GetPrivateProfileIntA(_extSettings[i].szIniSection, _extSettings[i].szIniName, _extSettings[i].dwDef, szIniFilename));
}
if (version >= 5) {
- for(i = 0; i < safe_sizeof(_extSettings_v5); i++) {
+ for (i = 0; i < safe_sizeof(_extSettings_v5); i++) {
M->WriteDword(_extSettings_v5[i].szDbModule, _extSettings_v5[i].szDbSetting,
GetPrivateProfileIntA(_extSettings_v5[i].szIniSection, _extSettings_v5[i].szIniName, _extSettings_v5[i].dwDef, szIniFilename));
}
|