diff options
author | George Hazan <ghazan@miranda.im> | 2021-10-16 15:50:11 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-10-16 15:50:11 +0300 |
commit | 4e1c17c7f3f69de7c3ea75168c0fded71e4cad52 (patch) | |
tree | 3a2271c120e5d5b25e6e7ae7ac2d2acde23d97e1 | |
parent | db29490aea37e3b708f606cd3f722009ba8b6f45 (diff) |
code simplification
-rw-r--r-- | plugins/TabSRMM/src/msglog.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp index 86706792ba..18e33c596e 100644 --- a/plugins/TabSRMM/src/msglog.cpp +++ b/plugins/TabSRMM/src/msglog.cpp @@ -373,13 +373,12 @@ static char* CreateRTFHeader(CMsgDialog *dat) static void AppendTimeStamp(wchar_t *szFinalTimestamp, int isSent, CMStringA &str, int skipFont, CMsgDialog *dat, int iFontIDOffset)
{
- if (skipFont)
- AppendUnicodeToBuffer(str, szFinalTimestamp, MAKELONG(isSent, dat->m_bIsHistory));
- else {
- str.Append(GetRTFFont(isSent ? MSGFONTID_MYTIME + iFontIDOffset : MSGFONTID_YOURTIME + iFontIDOffset));
+ if (!skipFont) {
+ str.Append(GetRTFFont(iFontIDOffset + (isSent ? MSGFONTID_MYTIME : MSGFONTID_YOURTIME)));
str.AppendChar(' ');
- AppendUnicodeToBuffer(str, szFinalTimestamp, MAKELONG(isSent, dat->m_bIsHistory));
}
+
+ AppendUnicodeToBuffer(str, szFinalTimestamp, MAKELONG(isSent, dat->m_bIsHistory));
}
static wchar_t* Template_MakeRelativeDate(HANDLE hTimeZone, time_t check, wchar_t code)
|