diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2012-11-10 11:24:21 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2012-11-10 11:24:21 +0000 |
commit | 332d569fa0e4fdad90a7ef98dc8283baa44046a9 (patch) | |
tree | b902c00844e4a724371825bfc132333e8c094c1b /protocols/Yahoo/src/proto.cpp | |
parent | 89613af98040c5efd96c9eded6f9339fce25c2eb (diff) |
minor type fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@2272 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Yahoo/src/proto.cpp')
-rw-r--r-- | protocols/Yahoo/src/proto.cpp | 27 |
1 files changed, 10 insertions, 17 deletions
diff --git a/protocols/Yahoo/src/proto.cpp b/protocols/Yahoo/src/proto.cpp index dc14b4538e..806fae3757 100644 --- a/protocols/Yahoo/src/proto.cpp +++ b/protocols/Yahoo/src/proto.cpp @@ -323,38 +323,31 @@ HANDLE __cdecl CYahooProto::ChangeInfo( int /*iInfoType*/, void* ) DWORD_PTR __cdecl CYahooProto::GetCaps( int type, HANDLE /*hContact*/ )
{
- int ret = 0;
switch ( type ) {
case PFLAGNUM_1:
- ret = PF1_IM | PF1_ADDED | PF1_AUTHREQ | PF1_MODEMSGRECV | PF1_MODEMSGSEND | PF1_BASICSEARCH |
- PF1_EXTSEARCH | PF1_FILESEND | PF1_FILERECV| PF1_VISLIST | PF1_SERVERCLIST ;
- break;
+ return PF1_IM | PF1_ADDED | PF1_AUTHREQ | PF1_MODEMSGRECV | PF1_MODEMSGSEND | PF1_BASICSEARCH |
+ PF1_EXTSEARCH | PF1_FILESEND | PF1_FILERECV| PF1_VISLIST | PF1_SERVERCLIST;
case PFLAGNUM_2:
- ret = PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY | PF2_ONTHEPHONE |
+ return PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY | PF2_ONTHEPHONE |
PF2_OUTTOLUNCH | PF2_INVISIBLE | PF2_LIGHTDND /*| PF2_HEAVYDND*/;
- break;
case PFLAGNUM_3:
- ret = PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY | PF2_ONTHEPHONE |
+ return PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY | PF2_ONTHEPHONE |
PF2_OUTTOLUNCH | PF2_LIGHTDND ;
- break;
case PFLAGNUM_4:
- ret = PF4_FORCEAUTH | PF4_FORCEADDED | PF4_SUPPORTTYPING | PF4_SUPPORTIDLE
+ return PF4_FORCEAUTH | PF4_FORCEADDED | PF4_SUPPORTTYPING | PF4_SUPPORTIDLE
|PF4_AVATARS | PF4_OFFLINEFILES | PF4_IMSENDUTF | PF4_IMSENDOFFLINE /* for Meta plugin*/;
- break;
case PFLAG_UNIQUEIDTEXT:
- ret = (DWORD_PTR) Translate("ID");
- break;
+ return (DWORD_PTR) Translate("ID");
case PFLAG_UNIQUEIDSETTING:
- ret = (DWORD_PTR) YAHOO_LOGINID;
- break;
+ return (DWORD_PTR) YAHOO_LOGINID;
case PFLAG_MAXLENOFMESSAGE:
- ret = 800; /* STUPID YAHOO!!! */
- break;
+ return 800; /* STUPID YAHOO!!! */
+ default:
+ return 0;
}
- return ret;
}
////////////////////////////////////////////////////////////////////////////////////////
|