Remove reliance on static acquaintances_initialized variable
It wasn't set to true anywhere before anyway
This commit is contained in:
parent
8b31f8fa28
commit
9a11e9e86a
1 changed files with 1 additions and 4 deletions
|
@ -64,8 +64,6 @@ std::map<std::string, std::vector<std::string> > history_map;
|
|||
|
||||
std::map<std::string, preferences::acquaintance> acquaintances;
|
||||
|
||||
bool acquaintances_initialized = false;
|
||||
|
||||
std::vector<std::string> mp_modifications;
|
||||
bool mp_modifications_initialized = false;
|
||||
std::vector<std::string> sp_modifications;
|
||||
|
@ -241,8 +239,7 @@ admin_authentication_reset::~admin_authentication_reset()
|
|||
}
|
||||
|
||||
static void load_acquaintances() {
|
||||
if(!acquaintances_initialized) {
|
||||
acquaintances.clear();
|
||||
if(acquaintances.empty()) {
|
||||
BOOST_FOREACH(const config &acfg, preferences::get_prefs()->child_range("acquaintance")) {
|
||||
acquaintance ac = acquaintance(acfg);
|
||||
acquaintances[ac.get_nick()] = ac;
|
||||
|
|
Loading…
Add table
Reference in a new issue