From: John L. <mov...@us...> - 2002-06-16 17:32:17
|
Update of /cvsroot/oprofile/oprofile/gui In directory usw-pr-cvs1:/tmp/cvs-serv17982/gui Modified Files: oprof_start.cpp oprof_start_util.cpp Log Message: tiny cleanu Index: oprof_start.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/gui/oprof_start.cpp,v retrieving revision 1.53 retrieving revision 1.54 diff -u -d -r1.53 -r1.54 --- oprof_start.cpp 15 Jun 2002 18:52:06 -0000 1.53 +++ oprof_start.cpp 16 Jun 2002 17:32:14 -0000 1.54 @@ -281,7 +281,7 @@ // create it. The parent directory of the config file is created if necessary bool oprof_start::save_config_file() { - if (check_and_create_config_dir() == false) + if (!check_and_create_config_dir()) return false; std::string name = get_user_filename(".oprofile/oprof_start_config"); @@ -333,7 +333,7 @@ // this work as load_config_file()/save_config_file() bool oprof_start::save_event_config_file(uint ctr) { - if (check_and_create_config_dir() == false) + if (!check_and_create_config_dir()) return false; std::ostringstream name; @@ -360,7 +360,7 @@ for (uint ctr = 0 ; ctr < op_nr_counters ; ++ctr) save_event_config_file(ctr); - if (record_config() == false) + if (!record_config()) return; save_config_file(); @@ -802,7 +802,7 @@ } // record_config validate the config - if (record_config() == false) + if (!record_config()) return; std::vector<std::string> args; Index: oprof_start_util.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/gui/oprof_start_util.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- oprof_start_util.cpp 6 Jun 2002 16:18:12 -0000 1.23 +++ oprof_start_util.cpp 16 Jun 2002 17:32:14 -0000 1.24 @@ -197,7 +197,7 @@ { string dir = get_user_filename(".oprofile"); - if (create_dir(dir) == false) { + if (!create_dir(dir)) { std::ostringstream out; out << "unable to create " << dir << " directory: "; QMessageBox::warning(0, 0, out.str().c_str()); |