Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • release/202005
  • release/202001
  • release/201912
  • release/201911
  • release/releaseWindowsTestOne
  • release/releaseTest
  • release/releaseWindowsTest
  • release/windowsReleaseTest
  • release/201910
  • release/qt/201910
  • release/windows-test/201910
  • release/201908
  • release/201906
  • release/201905
  • release/201904
  • release/201903
  • release/201902
  • release/201901
  • release/201812
  • 1.0.0
  • 0.3.0
  • 0.2.1
  • 0.2.0
  • 0.1.0
25 results

jami-libclient

  • Clone with SSH
  • Clone with HTTPS
  • Guillaume Roguez's avatar
    Guillaume Roguez authored
    Replace ContactMethod::BLANK() by ContactMethod::ContactMethod(),
    the default constructor.
    
    This is the general way to construct a instance with "defaults"
    behaviours, like BLANK tries to do.
    
    Also removes the nasty usage of BLANK:
    - it returns a constant instance
    - the code uses it with a const_cast<>, removing the only protection!
    No sense and extremly dangerous to operate with such global and
    non protected instance.
    
    Side effect: Call::peerContactMethod() returns a nullptr
    and not a valid and !!mutable!! global const instance if no cm exists.
    
    Change-Id: I8a29eacad657b76a7670055f27afeb6db98d78dc
    Reviewed-by: default avatarOlivier Soldano <olivier.soldano@savoirfairelinux.com>
    2b578f00
    History
    Name Last commit Last update