From: Philippe E. <ph...@us...> - 2005-08-10 11:57:31
|
Update of /cvsroot/oprofile/oprofile/libutil++ In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17286/libutil++ Modified Files: string_manip.h unique_storage.h Log Message: nothing interesting: minor coding style, no ChangeLog entry Index: string_manip.h =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/string_manip.h,v retrieving revision 1.25 retrieving revision 1.26 diff -u -p -d -r1.25 -r1.26 --- string_manip.h 12 Apr 2005 03:14:10 -0000 1.25 +++ string_manip.h 10 Aug 2005 11:57:19 -0000 1.26 @@ -87,9 +87,8 @@ template <typename To, typename From> To op_lexical_cast(From const & src) { std::ostringstream in; - if (!(in << src)) { + if (!(in << src)) throw std::invalid_argument("op_lexical_cast<T>()"); - } std::istringstream out(in.str()); To value; if (!(out >> value)) { Index: unique_storage.h =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/unique_storage.h,v retrieving revision 1.8 retrieving revision 1.9 diff -u -p -d -r1.8 -r1.9 --- unique_storage.h 12 Jun 2003 15:54:41 -0000 1.8 +++ unique_storage.h 10 Aug 2005 11:57:19 -0000 1.9 @@ -81,9 +81,8 @@ public: typename id_map::value_type val(value, id_value(values.size())); std::pair<typename id_map::iterator, bool> inserted = ids.insert(val); - if (inserted.second) { + if (inserted.second) values.push_back(value); - } return inserted.first->second; } |