summaryrefslogtreecommitdiff
path: root/cli/source.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-10-28 14:29:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-10-28 14:29:45 +0200
commitca4c01c87aedc82366ff0d253f5f8eb8d9d00954 (patch)
treeef52673f3b06d37c8d2ab5293c007193ecdb73b8 /cli/source.cxx
parent7f089045bce33cf309f807d1cee97a8beb7bb859 (diff)
Use assignment initialization for fundamental types
Diffstat (limited to 'cli/source.cxx')
-rw-r--r--cli/source.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/source.cxx b/cli/source.cxx
index 991968c..7a23c30 100644
--- a/cli/source.cxx
+++ b/cli/source.cxx
@@ -77,8 +77,8 @@ namespace
for (names::name_iterator i (n.name_begin ()); i != n.name_end (); ++i)
{
os << "_cli_" << scope << "_map_[\"" << *i << "\"] = " << endl
- << "&::cli::thunk<" << scope << ", " << type << ", " <<
- "&" << scope << "::" << member << ">;";
+ << "&::cli::thunk< " << scope << ", " << type << ", " <<
+ "&" << scope << "::" << member << " >;";
}
}
};
@@ -205,12 +205,12 @@ namespace
<< "{";
if (sep)
- os << "bool opt (true);" // Still recognizing options.
+ os << "bool opt = true;" // Still recognizing options.
<< endl;
os << "for (; start < argc;)"
<< "{"
- << "const char* s (argv[start]);";
+ << "const char* s = argv[start];";
if (sep)
os << endl