Used initialization instead of assignment within constructor.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1077 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
rich_sposato 2010-09-16 17:28:52 +00:00
parent 9c85634334
commit dca1d96724

View file

@ -22,6 +22,11 @@
#include <loki/Threads.h> #include <loki/Threads.h>
#endif #endif
#if defined( _MSC_VER )
#pragma warning( push )
#pragma warning( disable: 4355 )
#endif
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
/// ///
@ -801,8 +806,9 @@ protected:
inline explicit TwoRefLinks( bool strong ) inline explicit TwoRefLinks( bool strong )
: m_pointer( 0 ) : m_pointer( 0 )
, m_strong( strong ) , m_strong( strong )
, m_prev( this )
, m_next( this )
{ {
m_prev = m_next = this;
} }
TwoRefLinks( const void * p, bool strong ); TwoRefLinks( const void * p, bool strong );
@ -1808,5 +1814,8 @@ namespace std
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
#endif // end file guardian #if defined( _MSC_VER )
#pragma warning( pop )
#endif
#endif // end file guardian