Changeset 56189

Show
Ignore:
Timestamp:
10/09/08 02:33:13 (6 weeks ago)
Author:
VZ
Message:

fix bug in the test in STL build (where std::vector uses operator=() and not copy ctor to copy objects around, at least with g++)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wxWidgets/trunk/tests/vectors/vectors.cpp

    r54696 r56189  
    4848 
    4949// ---------------------------------------------------------------------------- 
    50 // simple class capable of checking it's this pointer validity 
     50// simple class capable of checking its "this" pointer validity 
    5151// ---------------------------------------------------------------------------- 
    5252 
     
    5757    SelfPointingObject(const SelfPointingObject&) { m_self = this; } 
    5858    ~SelfPointingObject() { CPPUNIT_ASSERT( this == m_self ); } 
     59 
     60    // the assignment operator should not modify our "this" pointer so 
     61    // implement it just to prevent the default version from doing it 
     62    SelfPointingObject& operator=(const SelfPointingObject&) { return *this; } 
    5963 
    6064private: