summaryrefslogtreecommitdiffstats
path: root/src/codegen.hpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-04-18 19:25:22 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-04-18 19:25:22 +0200
commit30c2141182f4eed1d3549603a7aa92c57b35d129 (patch)
tree914f3e0ecd12072da94ce4b4865abb0c08ad1856 /src/codegen.hpp
parent96d622144919a84508cf50eba1b1328ca44d1fed (diff)
downloadsolar-30c2141182f4eed1d3549603a7aa92c57b35d129.tar
solar-30c2141182f4eed1d3549603a7aa92c57b35d129.zip
Replace all make_pair calls with initializer lists
Diffstat (limited to 'src/codegen.hpp')
-rw-r--r--src/codegen.hpp2
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) {}