From 115051461c429783c8c0a38ade99538b7891a7c4 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Fri, 21 Jun 2013 16:21:25 +0200 Subject: [PATCH] Cosmetics. --- mtp.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5