diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-18 21:57:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-18 21:57:56 +0300 |
commit | 6de52a4f80adcbf5861da8e6235491e06415234b (patch) | |
tree | f8a23d2bc9d057fad58e87af9e3c0d9f33989d2a /plugins/CrashDumper/src | |
parent | a0a5ee70f1e5021df606a01a212144f4fe955daa (diff) |
minor code cleaning
Diffstat (limited to 'plugins/CrashDumper/src')
-rw-r--r-- | plugins/CrashDumper/src/dumper.cpp | 3 |
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);
|