diff options
author | George Hazan <george.hazan@gmail.com> | 2013-04-20 18:39:25 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-04-20 18:39:25 +0000 |
commit | 5b48d799fc3ebbf8bb0e9010f12954db24c91a32 (patch) | |
tree | 4ea9203bec7bd101fe5a2c916fb19af1e679a940 /plugins/TabSRMM/src/sendqueue.cpp | |
parent | d34993c5bc29deb66cac57406af93619d27ef241 (diff) |
minor cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@4489 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/sendqueue.cpp')
-rw-r--r-- | plugins/TabSRMM/src/sendqueue.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/TabSRMM/src/sendqueue.cpp b/plugins/TabSRMM/src/sendqueue.cpp index 0c378c9bdf..03732b2b1b 100644 --- a/plugins/TabSRMM/src/sendqueue.cpp +++ b/plugins/TabSRMM/src/sendqueue.cpp @@ -808,8 +808,9 @@ inform_and_discard: LRESULT SendQueue::WarnPendingJobs(unsigned int uNrMessages)
{
- return(MessageBox(0, TranslateT("There are unsent messages waiting for confirmation.\nWhen you close the window now, Miranda will try to send them but may be unable to inform you about possible delivery errors.\nDo you really want to close the Window(s)?"),
- TranslateT("Message window warning"), MB_YESNO | MB_ICONHAND));
+ return MessageBox(0,
+ TranslateT("There are unsent messages waiting for confirmation.\nWhen you close the window now, Miranda will try to send them but may be unable to inform you about possible delivery errors.\nDo you really want to close the Window(s)?"),
+ TranslateT("Message window warning"), MB_YESNO | MB_ICONHAND);
}
/**
@@ -862,19 +863,18 @@ int SendQueue::doSendLater(int iJobIndex, TWindowData *dat, HANDLE hContact, boo if (iJobIndex >= 0 && iJobIndex < NR_SENDJOBS) {
SendJob* job = &m_jobs[iJobIndex];
- char szKeyName[20];
- TCHAR tszTimestamp[30], tszHeader[150];
- time_t now = time(0);
+ char szKeyName[20];
+ TCHAR tszHeader[150];
if (fIsSendLater) {
- TCHAR *formatTime = _T("%Y.%m.%d - %H:%M");
- _tcsftime(tszTimestamp, 30, formatTime, _localtime32((__time32_t *)&now));
+ time_t now = time(0);
+ TCHAR tszTimestamp[30];
+ _tcsftime(tszTimestamp, SIZEOF(tszTimestamp), _T("%Y.%m.%d - %H:%M"), _localtime32((__time32_t *)&now));
tszTimestamp[29] = 0;
mir_snprintf(szKeyName, 20, "S%d", now);
mir_sntprintf(tszHeader, SIZEOF(tszHeader), TranslateT("\n(Sent delayed. Original timestamp %s)"), tszTimestamp);
}
- else
- mir_sntprintf(tszHeader, SIZEOF(tszHeader), _T("M%d|"), time(0));
+ else mir_sntprintf(tszHeader, SIZEOF(tszHeader), _T("M%d|"), time(0));
if (job->dwFlags & PREF_UTF || !(job->dwFlags & PREF_UNICODE)) {
char *utf_header = mir_utf8encodeT(tszHeader);
@@ -919,5 +919,5 @@ int SendQueue::doSendLater(int iJobIndex, TWindowData *dat, HANDLE hContact, boo }
return(iJobIndex);
}
- return(-1);
+ return -1;
}
|