diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-24 10:22:36 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-24 10:22:36 +0300 |
commit | 3abaf1281dee362d493147e40fa3c5a2b924effe (patch) | |
tree | 7e59b1c22731e046137e5f53f522fae40d0057c8 /src/mir_app/src/auth.cpp | |
parent | d6ebd42f473aae9ab99b6764c984823be374f8d4 (diff) |
code cleaning
Diffstat (limited to 'src/mir_app/src/auth.cpp')
-rw-r--r-- | src/mir_app/src/auth.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mir_app/src/auth.cpp b/src/mir_app/src/auth.cpp index 9818034105..11b834b36c 100644 --- a/src/mir_app/src/auth.cpp +++ b/src/mir_app/src/auth.cpp @@ -247,11 +247,11 @@ public: wchar_t hdr[256]; if (uin && emailT[0]) - mir_snwprintf(hdr, TranslateT("%s added you to the contact list\n%u (%s) on %s"), name, uin, emailT, acc->tszAccountName); + mir_snwprintf(hdr, TranslateT("%s added you to the contact list\n%u (%s) on %s"), name, uin, emailT.get(), acc->tszAccountName); else if (uin) mir_snwprintf(hdr, TranslateT("%s added you to the contact list\n%u on %s"), name, uin, acc->tszAccountName); else - mir_snwprintf(hdr, TranslateT("%s added you to the contact list\n%s on %s"), name, emailT[0] ? emailT : TranslateT("(Unknown)"), acc->tszAccountName); + mir_snwprintf(hdr, TranslateT("%s added you to the contact list\n%s on %s"), name, emailT[0] ? emailT.get() : TranslateT("(Unknown)"), acc->tszAccountName); SetDlgItemText(m_hwnd, IDC_HEADERBAR, hdr); if (m_hContact == INVALID_CONTACT_ID || !db_get_b(m_hContact, "CList", "NotOnList", 0)) @@ -325,7 +325,7 @@ static int AuthEventAdded(WPARAM, LPARAM lParam) if (dbei.eventType == EVENTTYPE_AUTHREQUEST) { Skin_PlaySound("AuthRequest"); if (szUid) - mir_snwprintf(szTooltip, TranslateT("%s requests authorization"), szUid); + mir_snwprintf(szTooltip, TranslateT("%s requests authorization"), szUid.get()); else mir_snwprintf(szTooltip, TranslateT("%u requests authorization"), *(PDWORD)dbei.pBlob); @@ -336,7 +336,7 @@ static int AuthEventAdded(WPARAM, LPARAM lParam) else if (dbei.eventType == EVENTTYPE_ADDED) { Skin_PlaySound("AddedEvent"); if (szUid) - mir_snwprintf(szTooltip, TranslateT("%s added you to their contact list"), szUid); + mir_snwprintf(szTooltip, TranslateT("%s added you to their contact list"), szUid.get()); else mir_snwprintf(szTooltip, TranslateT("%u added you to their contact list"), *(PDWORD)dbei.pBlob); |