From dca1d967248a5ea514b4d36a01629fa119fca4b2 Mon Sep 17 00:00:00 2001 From: rich_sposato Date: Thu, 16 Sep 2010 17:28:52 +0000 Subject: [PATCH] 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 --- include/loki/StrongPtr.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/loki/StrongPtr.h b/include/loki/StrongPtr.h index 94fbcfc..76b9712 100644 --- a/include/loki/StrongPtr.h +++ b/include/loki/StrongPtr.h @@ -22,6 +22,11 @@ #include #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