From 97d992fe41e7eaafba3e5700861b0e098a8f6080 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 23 Feb 2013 20:01:17 +0000 Subject: useless variable m_szProtoName removed git-svn-id: http://svn.miranda-ng.org/main/trunk@3740 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/src/proto.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'protocols/Twitter/src') diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index 6f143ba501..11d1073dc4 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -32,9 +32,7 @@ along with this program. If not, see . TwitterProto::TwitterProto(const char *proto_name,const TCHAR *username) { - m_szProtoName = mir_strdup (proto_name); - m_szModuleName = mir_strdup (proto_name); - m_tszUserName = mir_tstrdup(username); + ProtoConstructor(this, proto_name, username); CreateProtoService(m_szModuleName,PS_CREATEACCMGRUI, &TwitterProto::SvcCreateAccMgrUI,this); CreateProtoService(m_szModuleName,PS_GETNAME, &TwitterProto::GetName, this); @@ -95,9 +93,7 @@ TwitterProto::~TwitterProto() CloseHandle(avatar_lock_); CloseHandle(signon_lock_); - mir_free(m_szProtoName); - mir_free(m_szModuleName); - mir_free(m_tszUserName); + ProtoDestructor(this); } // ************************* @@ -247,7 +243,7 @@ int TwitterProto::SvcCreateAccMgrUI(WPARAM wParam,LPARAM lParam) int TwitterProto::GetName(WPARAM wParam,LPARAM lParam) { - lstrcpynA(reinterpret_cast(lParam), m_szProtoName, (int)wParam); + lstrcpynA(reinterpret_cast(lParam), m_szModuleName, (int)wParam); return 0; } -- cgit v1.2.3