cosmetics, whitespace

Change-Id: I1212dfeff33d7bcb8b699233279fbf05014ea3bd
This commit is contained in:
Horst Schirmeier
2013-03-23 18:04:37 +01:00
parent 95402cee5d
commit 1d25372283
3 changed files with 19 additions and 22 deletions

View File

@ -149,6 +149,3 @@ Database * Database::cmdline_connect() {
return new Database(username, hostname, database); return new Database(username, hostname, database);
} }

View File

@ -23,7 +23,7 @@ bool Importer::clear_database() {
ss << "DELETE FROM trace WHERE variant_id = " << m_variant_id; ss << "DELETE FROM trace WHERE variant_id = " << m_variant_id;
bool ret = db->query(ss.str().c_str()) == 0 ? false : true; bool ret = db->query(ss.str().c_str()) == 0 ? false : true;
log << "delted " << db->affected_rows() << " rows from trace table" << std::endl; log << "deleted " << db->affected_rows() << " rows from trace table" << std::endl;
return ret; return ret;
} }

View File

@ -56,11 +56,11 @@ int main(int argc, char *argv[]) {
cmd.add_args(argv[i]); cmd.add_args(argv[i]);
CommandLine::option_handle IGNORE = cmd.addOption("", "", Arg::None, "USAGE: import-trace [options]"); CommandLine::option_handle IGNORE = cmd.addOption("", "", Arg::None, "USAGE: import-trace [options]");
CommandLine::option_handle HELP = cmd.addOption("h", "help", Arg::None, "-h,--help\t Print usage and exit"); CommandLine::option_handle HELP = cmd.addOption("h", "help", Arg::None, "-h/--help\t Print usage and exit");
CommandLine::option_handle TRACE_FILE = cmd.addOption("t", "trace-file", Arg::Required, CommandLine::option_handle TRACE_FILE = cmd.addOption("t", "trace-file", Arg::Required,
"-t/--trace-file\t File to save the execution trace to\n"); "-t/--trace-file\t File to load the execution trace from\n");
// setup the datbase command line options // setup the database command line options
Database::cmdline_setup(); Database::cmdline_setup();
CommandLine::option_handle VARIANT = cmd.addOption("v", "variant", Arg::Required, CommandLine::option_handle VARIANT = cmd.addOption("v", "variant", Arg::Required,