From: Philippe E. <ph...@us...> - 2002-10-01 22:32:34
|
Update of /cvsroot/oprofile/oprofile/libop++ In directory usw-pr-cvs1:/tmp/cvs-serv11288/libop++ Modified Files: op_mangling.cpp op_print_event.cpp Log Message: *.cpp: using std::xxx; --> using namespace std; tested with 2.95.3/3.0.4/3.1.1/3.2 but I have not the necessary lib to link the gui with gcc >= 3.0 can somene try at least 3.2 ? regards, Phil Index: op_mangling.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libop++/op_mangling.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- op_mangling.cpp 7 Sep 2002 18:19:36 -0000 1.5 +++ op_mangling.cpp 1 Oct 2002 22:32:31 -0000 1.6 @@ -17,10 +17,7 @@ #include <iostream> #include <cerrno> -using std::string; -using std::list; -using std::cerr; -using std::endl; +using namespace std; void strip_counter_suffix(string & name) { @@ -32,7 +29,7 @@ { string result = filename; - std::replace(result.begin(), result.end(), '/', OPD_MANGLE_CHAR); + replace(result.begin(), result.end(), '/', OPD_MANGLE_CHAR); return result; } @@ -44,7 +41,7 @@ size_t pos = samples_filename.find_first_of(OPD_MANGLE_CHAR); if (pos != string::npos) { result.erase(0, pos); - std::replace(result.begin(), result.end(), OPD_MANGLE_CHAR, '/'); + replace(result.begin(), result.end(), OPD_MANGLE_CHAR, '/'); } return result; Index: op_print_event.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libop++/op_print_event.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- op_print_event.cpp 25 Sep 2002 14:46:47 -0000 1.6 +++ op_print_event.cpp 1 Oct 2002 22:32:31 -0000 1.7 @@ -15,12 +15,7 @@ #include <iostream> #include <iomanip> -using std::ostream; -using std::endl; -using std::hex; -using std::dec; -using std::setw; -using std::setfill; +using namespace std; void op_print_event(ostream & out, int counter_nr, op_cpu cpu_type, u8 type, u16 um, u32 count) |