Commit 47d660fb by Paolo Carlini

profiler_list_to_slist.h: Remove spurious semicolon; prefer pre-increment.

2010-06-25  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/profile/impl/profiler_list_to_slist.h: Remove spurious
	semicolon; prefer pre-increment.
	* include/profile/impl/profiler_container_size.h: Use everywhere
	qualified std::size_t.
	* include/profile/impl/profiler_trace.h (__trace_base<>::
	__collect_warnings): Tidy loop.
	* include/profile/impl/profiler_vector_to_list.h: Minor formatting
	changes.

From-SVN: r161373
parent d6841109
...@@ -179,16 +179,16 @@ namespace __gnu_profile ...@@ -179,16 +179,16 @@ namespace __gnu_profile
// Insert a new node at construct with object, callstack and initial size. // Insert a new node at construct with object, callstack and initial size.
void void
__insert(const __object_t __obj, __stack_t __stack, size_t __num) __insert(const __object_t __obj, __stack_t __stack, std::size_t __num)
{ __add_object(__obj, __container_size_info(__stack, __num)); } { __add_object(__obj, __container_size_info(__stack, __num)); }
// XXX Undefined? // XXX Undefined?
void void
__construct(const void* __obj, size_t __inum); __construct(const void* __obj, std::size_t __inum);
// Call at destruction/clean to set container final size. // Call at destruction/clean to set container final size.
void void
__destruct(const void* __obj, size_t __num, size_t __inum) __destruct(const void* __obj, std::size_t __num, std::size_t __inum)
{ {
if (!__is_on()) if (!__is_on())
return; return;
......
...@@ -77,7 +77,7 @@ namespace __gnu_profile ...@@ -77,7 +77,7 @@ namespace __gnu_profile
} }
void void
__merge(const __list2slist_info&) { }; __merge(const __list2slist_info&) { }
void void
__write(FILE* __f) const __write(FILE* __f) const
...@@ -96,7 +96,7 @@ namespace __gnu_profile ...@@ -96,7 +96,7 @@ namespace __gnu_profile
void void
__record_operation() __record_operation()
{ _M_operations++; } { ++_M_operations; }
bool bool
__has_rewind() __has_rewind()
......
...@@ -225,12 +225,11 @@ namespace __gnu_profile ...@@ -225,12 +225,11 @@ namespace __gnu_profile
__trace_base<__object_info, __stack_info>:: __trace_base<__object_info, __stack_info>::
__collect_warnings(__warning_vector_t& __warnings) __collect_warnings(__warning_vector_t& __warnings)
{ {
typename __stack_table_t::iterator __i = __stack_table.begin(); for (typename __stack_table_t::iterator __it
for (; __i != __stack_table.end(); ++__i) = __stack_table.begin(); __it != __stack_table.end(); ++__it)
__warnings.push_back(__warning_data((*__i).second.__magnitude(), __warnings.push_back(__warning_data((*__it).second.__magnitude(),
(*__i).first, (*__it).first, __id,
__id, (*__it).second.__advice()));
(*__i).second.__advice()));
} }
template<typename __object_info, typename __stack_info> template<typename __object_info, typename __stack_info>
......
...@@ -98,7 +98,8 @@ namespace __gnu_profile ...@@ -98,7 +98,8 @@ namespace __gnu_profile
__iterate() __iterate()
{ return _M_iterate; } { return _M_iterate; }
float __list_cost() float
__list_cost()
{ return _M_list_cost; } { return _M_list_cost; }
std::size_t std::size_t
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment