diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-05-10 18:31:32 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-05-10 18:31:32 +0000 |
commit | c16bfe00dc27525c03e36cca6930abe5a9fd43a7 (patch) | |
tree | 2af9b262bc48ef0a3bf004fab9fdbc1c969fe86a /protocols/Skype/src/skypekit/contact.cpp | |
parent | 9403f94a71782e106d29f1ca2df5aa682ea3f746 (diff) |
- added search by names
git-svn-id: http://svn.miranda-ng.org/main/trunk@4624 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skypekit/contact.cpp')
-rw-r--r-- | protocols/Skype/src/skypekit/contact.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Skype/src/skypekit/contact.cpp b/protocols/Skype/src/skypekit/contact.cpp index e1629fb460..6031837afe 100644 --- a/protocols/Skype/src/skypekit/contact.cpp +++ b/protocols/Skype/src/skypekit/contact.cpp @@ -35,10 +35,10 @@ bool CContact::GetFullname(SEString &firstName, SEString &lastName) SEString fullname;
this->GetPropFullname(fullname);
int pos = fullname.find(" ");
- if (pos && pos < (int)fullname.length())
+ if (pos != -1)
{
- firstName = fullname.substr(0, pos);
- lastName = fullname.right(pos);
+ firstName = fullname.substr(0, pos - 1);
+ lastName = fullname.right(fullname.size() - pos - 1);
} else
firstName = fullname;
|