From 52a4fbdec80fd6646f125e26b5319b8dc7fe9a2d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 19 Sep 2016 08:40:15 +0000 Subject: IRC - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@17313 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IRCG/src/clist.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/IRCG/src/clist.cpp') diff --git a/protocols/IRCG/src/clist.cpp b/protocols/IRCG/src/clist.cpp index 3095d7096a..484ed0391f 100644 --- a/protocols/IRCG/src/clist.cpp +++ b/protocols/IRCG/src/clist.cpp @@ -29,14 +29,14 @@ BOOL CIrcProto::CList_AddDCCChat(const CMStringW& name, const CMStringW& hostmas char szService[256]; bool bFlag = false; - CONTACT usertemp = { (wchar_t*)name.c_str(), NULL, NULL, false, false, true }; + CONTACT usertemp = { name, NULL, NULL, false, false, true }; MCONTACT hc = CList_FindContact(&usertemp); if (hc && db_get_b(hc, "CList", "NotOnList", 0) == 0 && db_get_b(hc, "CList", "Hidden", 0) == 0) bFlag = true; CMStringW contactname = name; contactname += DCCSTRING; - CONTACT user = { (wchar_t*)contactname.c_str(), NULL, NULL, false, false, true }; + CONTACT user = { contactname, NULL, NULL, false, false, true }; hContact = CList_AddContact(&user, false, false); setByte(hContact, "DCC", 1); -- cgit v1.2.3