summaryrefslogtreecommitdiff
path: root/plugins/SimpleStatusMsg/src/options.cpp
diff options
context:
space:
mode:
authorslotwin <slotwin@users.noreply.github.com>2014-07-01 23:47:25 +0000
committerslotwin <slotwin@users.noreply.github.com>2014-07-01 23:47:25 +0000
commit1e89dc73ca24c027ddb8fab6527a8d1cc180955e (patch)
tree4b4a57e99ecffe0dfb554503f3738033ae9e3e7c /plugins/SimpleStatusMsg/src/options.cpp
parentfd00c3f12ac75e78941d4417985d0052f31eba8f (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.cpp12
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;
}