Skip to content
Snippets Groups Projects
Commit 9abe8557 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

Account::_accountID: constify

It is set by the constructor
No need to unserialize it again either
parent b4cbc8db
Branches
Tags
No related merge requests found
......@@ -364,7 +364,7 @@ class Account : public Serializable
/**
* Account ID are assign in constructor and shall not changed
*/
std::string _accountID;
const std::string _accountID;
/**
* Account login information: username
......
......@@ -97,7 +97,6 @@ void IAXAccount::unserialize (Conf::MappingNode *map)
map->getValue(aliasKey, &_alias);
map->getValue(typeKey, &_type);
map->getValue(idKey, &_accountID);
map->getValue(usernameKey, &_username);
map->getValue(passwordKey, &_password);
map->getValue(hostnameKey, &_hostname);
......
......@@ -296,7 +296,6 @@ void SIPAccount::unserialize (Conf::MappingNode *map)
map->getValue(aliasKey, &_alias);
map->getValue(typeKey, &_type);
map->getValue(idKey, &_accountID);
map->getValue(usernameKey, &_username);
map->getValue(authenticationUsernameKey, &_authenticationUsername);
map->getValue(passwordKey, &_password);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment