Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56501 - trunk/boost/test/impl
From: juergen.hunold_at_[hidden]
Date: 2009-10-01 06:12:00


Author: jhunold
Date: 2009-10-01 06:12:00 EDT (Thu, 01 Oct 2009)
New Revision: 56501
URL: http://svn.boost.org/trac/boost/changeset/56501

Log:
Refactored: use static_cast and const pointer where possible.

Text files modified:
   trunk/boost/test/impl/framework.ipp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/test/impl/framework.ipp
==============================================================================
--- trunk/boost/test/impl/framework.ipp (original)
+++ trunk/boost/test/impl/framework.ipp 2009-10-01 06:12:00 EDT (Thu, 01 Oct 2009)
@@ -125,13 +125,13 @@
     {
         while( !m_test_units.empty() ) {
             test_unit_store::value_type const& tu = *m_test_units.begin();
- test_unit* tu_ptr = tu.second;
+ test_unit const* tu_ptr = tu.second;
 
             // the delete will erase this element from map
             if( ut_detail::test_id_2_unit_type( tu.second->p_id ) == tut_suite )
- delete (test_suite const*)tu_ptr;
+ delete static_cast<test_suite const*>(tu_ptr);
             else
- delete (test_case const*)tu_ptr;
+ delete static_cast<test_case const*>(tu_ptr);
         }
     }
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk