Cosmetics.
authorFrancois Fleuret <francois@fleuret.org>
Fri, 21 Jun 2013 14:21:25 +0000 (16:21 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Fri, 21 Jun 2013 14:21:25 +0000 (16:21 +0200)
mtp.cc

diff --git a/mtp.cc b/mtp.cc
index e749b67..15d0e08 100644 (file)
--- 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; }