|
@ -17,8 +17,8 @@ namespace pEp { |
|
|
|
|
|
|
|
|
Identity::Identity(string address, string username, string user_id, |
|
|
Identity::Identity(string address, string username, string user_id, |
|
|
string fpr, int comm_type, string lang, identity_flags_t flags) |
|
|
string fpr, int comm_type, string lang, identity_flags_t flags) |
|
|
: _ident(new_identity(address.c_str(), fpr.c_str(), username.c_str(), |
|
|
: _ident(new_identity(address.c_str(), fpr.c_str(), user_id.c_str(), |
|
|
user_id.c_str()), &::free_identity) |
|
|
username.c_str()), &::free_identity) |
|
|
{ |
|
|
{ |
|
|
if (!_ident) |
|
|
if (!_ident) |
|
|
throw bad_alloc(); |
|
|
throw bad_alloc(); |
|
|