diff options
Diffstat (limited to 'cli/runtime-source.cxx')
-rw-r--r-- | cli/runtime-source.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/runtime-source.cxx b/cli/runtime-source.cxx index 1be8f13..9f96416 100644 --- a/cli/runtime-source.cxx +++ b/cli/runtime-source.cxx @@ -160,7 +160,7 @@ generate_runtime_source (context& ctx) << "parse (std::vector<X>& v, char** argv, int n)" << "{" << "X x;" - << "int i (parser<X>::parse (x, argv, n));" + << "int i = parser<X>::parse (x, argv, n);" << "v.push_back (x);" << "return i;" << "}" @@ -175,7 +175,7 @@ generate_runtime_source (context& ctx) << "parse (std::set<X>& s, char** argv, int n)" << "{" << "X x;" - << "int i (parser<X>::parse (x, argv, n));" + << "int i = parser<X>::parse (x, argv, n);" << "s.insert (x);" << "return i;" << "}" @@ -192,7 +192,7 @@ generate_runtime_source (context& ctx) << "if (n > 1)" << "{" << "std::string s (argv[1]);" - << "std::string::size_type p (s.find ('='));" + << "std::string::size_type p = s.find ('=');" << endl << "if (p == std::string::npos)" << "{" |