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:
parent
9c85634334
commit
dca1d96724
1 changed files with 11 additions and 2 deletions
|
@ -22,6 +22,11 @@
|
|||
#include <loki/Threads.h>
|
||||
#endif
|
||||
|
||||
#if defined( _MSC_VER )
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable: 4355 )
|
||||
#endif
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
///
|
||||
|
@ -801,8 +806,9 @@ protected:
|
|||
inline explicit TwoRefLinks( bool strong )
|
||||
: m_pointer( 0 )
|
||||
, m_strong( strong )
|
||||
, m_prev( this )
|
||||
, m_next( this )
|
||||
{
|
||||
m_prev = m_next = this;
|
||||
}
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue