From: Francois Fleuret Date: Fri, 21 Jun 2013 14:21:25 +0000 (+0200) Subject: Cosmetics. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=115051461c429783c8c0a38ade99538b7891a7c4;p=mtp.git Cosmetics. --- diff --git a/mtp.cc b/mtp.cc index e749b67..15d0e08 100644 --- a/mtp.cc +++ b/mtp.cc @@ -120,7 +120,7 @@ void do_tracking(istream *in_tracker) { cout << "done (" << diff_in_second(&start_time, &end_time) << "s)." << endl; } - if(strcmp(global.trajectory_filename, "")) { + if(global.trajectory_filename[0]) { ofstream out_traj(global.trajectory_filename); tracker->write_trajectories(&out_traj); if(global.verbose) { cout << "Wrote " << global.trajectory_filename << "." << endl; } @@ -128,7 +128,7 @@ void do_tracking(istream *in_tracker) { tracker->write_trajectories(&cout); } - if(strcmp(global.graph_filename, "") != 0) { + if(global.graph_filename[0]) { ofstream out_dot(global.graph_filename); tracker->print_graph_dot(&out_dot); if(global.verbose) { cout << "Wrote " << global.graph_filename << "." << endl; }