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 -2
View File
@@ -58,8 +58,7 @@ static string mimetypefromdata(RclConfig *cfg, const string &fn, bool usfc)
// 'file' fallback if the configured command (default:
// xdg-mime) is not found
static const vector<string> tradfilecmd =
create_vector<string>(FILE_PROG) ("-i") (fn);
static const vector<string> tradfilecmd = {{FILE_PROG}, {"-i"}, {fn}};
vector<string> cmd;
string scommand;