diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-18 19:25:22 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2015-04-18 19:25:22 +0200 |
commit | 30c2141182f4eed1d3549603a7aa92c57b35d129 (patch) | |
tree | 914f3e0ecd12072da94ce4b4865abb0c08ad1856 /src/codegen.hpp | |
parent | 96d622144919a84508cf50eba1b1328ca44d1fed (diff) | |
download | solar-30c2141182f4eed1d3549603a7aa92c57b35d129.tar solar-30c2141182f4eed1d3549603a7aa92c57b35d129.zip |
Replace all make_pair calls with initializer lists
Diffstat (limited to 'src/codegen.hpp')
-rw-r--r-- | src/codegen.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.hpp b/src/codegen.hpp index 7dbfd77..1274346 100644 --- a/src/codegen.hpp +++ b/src/codegen.hpp @@ -72,7 +72,7 @@ public: } void add_arg(const std::string &str, const std::string &name, bool func = false) { - add_arg(std::make_pair(str, name), func); + add_arg({str, name}, func); } function_t(const std::string &type, const std::string &name) : type_name({type + ' ' + name, name}, true) {} |