use std c++11 initializer instead of create_xx hacks

This commit is contained in:
Jean-Francois Dockes
2016-07-16 11:15:31 +02:00
parent ab68d54aa0
commit 92da4c00cd
4 changed files with 13 additions and 58 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ void reapMetaCmds(RclConfig* cfg, const string& path,
const vector<MDReaper>& reapers = cfg->getMDReapers();
if (reapers.empty())
return;
map<char,string> smap = create_map<char, string>('f', path);
map<char,string> smap = {{'f', path}};
for (vector<MDReaper>::const_iterator rp = reapers.begin();
rp != reapers.end(); rp++) {
vector<string> cmd;