diff options
author | George Hazan <george.hazan@gmail.com> | 2016-08-31 12:38:00 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-08-31 12:38:00 +0000 |
commit | 9d50daf8ae4c81aa1b3bfd665f38a3c78068da23 (patch) | |
tree | ddd3523b06dac57f855a74850fa7168982de4391 /plugins | |
parent | ca942b88c295830544e03804666229e0e955f64b (diff) |
minor code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@17227 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Clist_modern/src/modern_skinopt.cpp | 2 | ||||
-rw-r--r-- | plugins/TabSRMM/src/utils.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_skinopt.cpp b/plugins/Clist_modern/src/modern_skinopt.cpp index c52fa1533e..ace3621e07 100644 --- a/plugins/Clist_modern/src/modern_skinopt.cpp +++ b/plugins/Clist_modern/src/modern_skinopt.cpp @@ -283,7 +283,7 @@ INT_PTR CALLBACK DlgSkinOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPara return 0; wchar_t Author[255], URL[MAX_PATH], Contact[255], Description[400], text[2000]; - if (sd2->File && !wcschr(sd2->File, '%')) { + if (!wcschr(sd2->File, '%')) { GetPrivateProfileString(L"Skin_Description_Section", L"Author", TranslateT("( unknown )"), Author, _countof(Author), sd2->File); GetPrivateProfileString(L"Skin_Description_Section", L"URL", L"", URL, _countof(URL), sd2->File); GetPrivateProfileString(L"Skin_Description_Section", L"Contact", L"", Contact, _countof(Contact), sd2->File); diff --git a/plugins/TabSRMM/src/utils.cpp b/plugins/TabSRMM/src/utils.cpp index 644134e6dd..6877134d6e 100644 --- a/plugins/TabSRMM/src/utils.cpp +++ b/plugins/TabSRMM/src/utils.cpp @@ -299,7 +299,7 @@ bool Utils::FormatTitleBar(const TWindowData *dat, const wchar_t *szFormat, CMSt ptrW szXStatus(db_get_wsa(dat->hContact, dat->szProto, "XStatusName"));
dest.Append((szXStatus != NULL) ? Trunc500(szXStatus) : xStatusDescr[xStatus - 1]);
}
- else dest.Append(dat->szStatus && dat->szStatus[0] ? dat->szStatus : L"(undef)");
+ else dest.Append(dat->szStatus[0] ? dat->szStatus : L"(undef)");
}
break;
|