Ignore:
Timestamp:
Jun 12, 2019 6:00:35 AM (5 years ago)
Author:
nanang
Message:

Misc (re #2147): Fixed compile warnings "dynamic exception specifications are deprecated in C++11".

File:
1 edited

Legend:

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

    r5969 r6026  
    3737/////////////////////////////////////////////////////////////////////////////// 
    3838 
    39 void BuddyConfig::readObject(const ContainerNode &node) throw(Error) 
     39void BuddyConfig::readObject(const ContainerNode &node) PJSUA2_THROW(Error) 
    4040{ 
    4141    ContainerNode this_node = node.readContainer("BuddyConfig"); 
     
    4545} 
    4646 
    47 void BuddyConfig::writeObject(ContainerNode &node) const throw(Error) 
     47void BuddyConfig::writeObject(ContainerNode &node) const PJSUA2_THROW(Error) 
    4848{ 
    4949    ContainerNode this_node = node.writeNewContainer("BuddyConfig"); 
     
    124124 * Create buddy and register the buddy to PJSUA-LIB. 
    125125 */ 
    126 void Buddy::create(Account &account, const BuddyConfig &cfg) throw(Error) 
     126void Buddy::create(Account &account, const BuddyConfig &cfg) 
     127                   PJSUA2_THROW(Error) 
    127128{ 
    128129    pjsua_buddy_config pj_cfg; 
     
    155156 * Get detailed buddy info. 
    156157 */ 
    157 BuddyInfo Buddy::getInfo() const throw(Error) 
     158BuddyInfo Buddy::getInfo() const PJSUA2_THROW(Error) 
    158159{ 
    159160    pjsua_buddy_info pj_bi; 
     
    168169 * Enable/disable buddy's presence monitoring. 
    169170 */ 
    170 void Buddy::subscribePresence(bool subscribe) throw(Error) 
     171void Buddy::subscribePresence(bool subscribe) PJSUA2_THROW(Error) 
    171172{ 
    172173    PJSUA2_CHECK_EXPR( pjsua_buddy_subscribe_pres(id, subscribe) ); 
     
    177178 * Update the presence information for the buddy. 
    178179 */ 
    179 void Buddy::updatePresence(void) throw(Error) 
     180void Buddy::updatePresence(void) PJSUA2_THROW(Error) 
    180181{ 
    181182    PJSUA2_CHECK_EXPR( pjsua_buddy_update_pres(id) ); 
     
    185186 * Send instant messaging outside dialog. 
    186187 */ 
    187 void Buddy::sendInstantMessage(const SendInstantMessageParam &prm) throw(Error) 
     188void Buddy::sendInstantMessage(const SendInstantMessageParam &prm) 
     189                               PJSUA2_THROW(Error) 
    188190{ 
    189191    BuddyInfo bi = getInfo(); 
     
    211213 */ 
    212214void Buddy::sendTypingIndication(const SendTypingIndicationParam &prm) 
    213      throw(Error) 
     215     PJSUA2_THROW(Error) 
    214216{ 
    215217    BuddyInfo bi = getInfo(); 
Note: See TracChangeset for help on using the changeset viewer.