Changeset 6418 for trunk/licq/src/message.cpp
- Timestamp:
- 07/04/08 06:05:11 (5 months ago)
- Files:
-
- 1 modified
-
trunk/licq/src/message.cpp (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/licq/src/message.cpp
r6405 r6418 414 414 m_szEmail = strdup(_szEmail); 415 415 m_nPPID =_nPPID; 416 if (_nPPID == LICQ_PPID)417 m_nUin = strtoul(_szId, (char **)NULL, 10);418 else419 m_nUin = 0;420 416 } 421 417 … … 430 426 m_szLastName = strdup(_szLastName); 431 427 m_szEmail = strdup(_szEmail); 432 m_nUin = _nUin;433 428 434 429 char szUin[24]; … … 499 494 m_szReason = strdup(_szReason); 500 495 m_nPPID = _nPPID; 501 if (_nPPID == LICQ_PPID)502 m_nUin = strtoul(_szId, (char **)NULL, 10);503 else504 m_nUin = 0;505 496 } 506 497 … … 522 513 m_szId = strdup(szUin); 523 514 m_nPPID = LICQ_PPID; 524 m_nUin = _nUin;525 515 } 526 516 … … 532 522 + strlen(m_szLastName) + strlen(m_szEmail) 533 523 + strlen(m_szReason) + strlen(m_szId) + strlen(p) + 256]; 534 //sprintf(m_szText, "%s (%s %s, %s), uin % lu, requests authorization to add you to their contact list:\n%s\n",535 // m_szAlias, m_szFirstName, m_szLastName, m_szEmail, m_ nUin, m_szReason);524 //sprintf(m_szText, "%s (%s %s, %s), uin %s, requests authorization to add you to their contact list:\n%s\n", 525 // m_szAlias, m_szFirstName, m_szLastName, m_szEmail, m_szId, m_szReason); 536 526 int pos = sprintf(m_szText, tr("Alias: %s\nUser: %s (%s)\nName: %s %s\nEmail: %s\n"), 537 527 m_szAlias, m_szId, p, m_szFirstName, m_szLastName, m_szEmail); … … 590 580 m_szId = strdup(_szId); 591 581 m_nPPID = _nPPID; 592 if (_nPPID == LICQ_PPID)593 m_nUin = strtoul(_szId, (char **)NULL, 10);594 else595 m_nUin = 0;596 582 } 597 583 … … 607 593 m_szId = strdup(szUin); 608 594 m_nPPID = LICQ_PPID; 609 m_nUin = _nUin;610 595 } 611 596 … … 664 649 m_szId = strdup(_szId); 665 650 m_nPPID = _nPPID; 666 if (_nPPID == LICQ_PPID)667 m_nUin = strtoul(_szId, (char **)NULL, 10);668 else669 m_nUin = 0;670 651 } 671 652 … … 676 657 { 677 658 m_szMessage = _szMessage == NULL ? strdup("") : strdup(_szMessage); 678 m_nUin = _nUin;679 659 680 660 char szUin[24]; … … 828 808 m_szId = strdup(s); 829 809 m_szAlias = strdup(a); 830 m_nUin = strtoul(s, (char**)NULL, 10); 831 } 832 833 CContact::CContact(unsigned long n, const char *a) : m_nUin(n), m_nPPID(0) 810 } 811 812 CContact::CContact(unsigned long n, const char *a) : m_nPPID(0) 834 813 { 835 814 std::ostringstream ss; … … 1160 1139 { 1161 1140 m_szMsg = _szMsg == NULL ? strdup("") : strdup(_szMsg); 1162 m_szId = m_szId == NULL ? NULL : strdup(m_szId);1141 m_szId = idString == NULL ? NULL : strdup(idString); 1163 1142 m_nPPID = ppid; 1164 1143 }
