Ignore:
Timestamp:
Jun 20, 2018 7:56:45 AM (15 months ago)
Author:
nanang
Message:

Fix #2121: Initialize basic type data member of PJSUA2/C++ objects in its constructor.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/siptypes.cpp

    r5669 r5807  
    304304 
    305305/////////////////////////////////////////////////////////////////////////////// 
     306 
     307TransportInfo::TransportInfo() 
     308: id(), type(PJSIP_TRANSPORT_UNSPECIFIED), flags(), usageCount() 
     309{ 
     310} 
    306311 
    307312void TransportInfo::fromPj(const pjsua_transport_info &tinfo) 
     
    528533 
    529534SipTransaction::SipTransaction() 
    530 : role(PJSIP_ROLE_UAC), statusCode(0), pjTransaction(NULL) 
     535: role(PJSIP_ROLE_UAC), statusCode(PJSIP_SC_NULL), state(PJSIP_TSX_STATE_NULL), pjTransaction(NULL) 
    531536{ 
    532537} 
     
    546551} 
    547552 
     553TsxStateEvent::TsxStateEvent() 
     554: prevState(PJSIP_TSX_STATE_NULL), type(PJSIP_EVENT_UNKNOWN) 
     555{ 
     556} 
     557 
    548558bool SipTxOption::isEmpty() const 
    549559{ 
Note: See TracChangeset for help on using the changeset viewer.