summaryrefslogtreecommitdiff
path: root/plugins/CrashDumper/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-01-18 21:57:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-01-18 21:57:56 +0300
commit6de52a4f80adcbf5861da8e6235491e06415234b (patch)
treef8a23d2bc9d057fad58e87af9e3c0d9f33989d2a /plugins/CrashDumper/src
parenta0a5ee70f1e5021df606a01a212144f4fe955daa (diff)
minor code cleaning
Diffstat (limited to 'plugins/CrashDumper/src')
-rw-r--r--plugins/CrashDumper/src/dumper.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/CrashDumper/src/dumper.cpp b/plugins/CrashDumper/src/dumper.cpp
index fb1157d465..4c81bcfbbb 100644
--- a/plugins/CrashDumper/src/dumper.cpp
+++ b/plugins/CrashDumper/src/dumper.cpp
@@ -424,8 +424,7 @@ void PrintVersionInfo(CMStringW& buffer, unsigned flags)
mir_snwprintf(profpn, L"%s\\%s", profpathfull, profname);
buffer.AppendFormat(L"Profile: %s\r\n", profpn);
- auto *pDb = db_get_current();
- if (pDb)
+ if (auto *pDb = db_get_current())
if (auto *dbLink = pDb->GetDriver())
buffer.AppendFormat(L"Database driver: %s\r\n", dbLink ->szFullName);