diff options
author | slotwin <slotwin@users.noreply.github.com> | 2014-07-01 23:47:25 +0000 |
---|---|---|
committer | slotwin <slotwin@users.noreply.github.com> | 2014-07-01 23:47:25 +0000 |
commit | 1e89dc73ca24c027ddb8fab6527a8d1cc180955e (patch) | |
tree | 4b4a57e99ecffe0dfb554503f3738033ae9e3e7c /plugins/SimpleStatusMsg/src/options.cpp | |
parent | fd00c3f12ac75e78941d4417985d0052f31eba8f (diff) |
Simple Status Change: code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@9642 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SimpleStatusMsg/src/options.cpp')
-rw-r--r-- | plugins/SimpleStatusMsg/src/options.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/SimpleStatusMsg/src/options.cpp b/plugins/SimpleStatusMsg/src/options.cpp index 251f005a99..5ad595fc8a 100644 --- a/plugins/SimpleStatusMsg/src/options.cpp +++ b/plugins/SimpleStatusMsg/src/options.cpp @@ -1194,14 +1194,12 @@ static BOOL IsHistoryMsgsFound(HWND hwndDlg, int histMax) char szSetting[16];
DBVARIANT dbv;
int j = db_get_w(NULL, "SimpleStatusMsg", "LMMsg", 1);
- for (int i = 1; i <= histMax; ++i, --j)
- {
- if (j < 1) j = histMax;
+ for (int i = 1; i <= histMax; ++i, --j) {
+ if (j < 1)
+ j = histMax;
mir_snprintf(szSetting, SIZEOF(szSetting), "SMsg%d", j);
- if (!db_get_ts(NULL, "SimpleStatusMsg", szSetting, &dbv))
- {
- if (dbv.ptszVal != NULL && *dbv.ptszVal != '\0')
- {
+ if (!db_get_ts(NULL, "SimpleStatusMsg", szSetting, &dbv)) {
+ if (dbv.ptszVal != NULL && *dbv.ptszVal != '\0') {
db_free(&dbv);
return TRUE;
}
|