diff options
author | George Hazan <george.hazan@gmail.com> | 2013-02-23 20:01:17 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-02-23 20:01:17 +0000 |
commit | 97d992fe41e7eaafba3e5700861b0e098a8f6080 (patch) | |
tree | 48c4f577c59a9a52e0875771b00d66d301181de7 /protocols/Twitter/src | |
parent | aa387fa04aa096d163932d3f5f9711a2f146c6f0 (diff) |
useless variable m_szProtoName removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@3740 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Twitter/src')
-rw-r--r-- | protocols/Twitter/src/proto.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
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 <http://www.gnu.org/licenses/>. 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<char*>(lParam), m_szProtoName, (int)wParam);
+ lstrcpynA(reinterpret_cast<char*>(lParam), m_szModuleName, (int)wParam);
return 0;
}
|