|
From: <ric...@us...> - 2010-09-16 17:28:59
|
Revision: 1077
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1077&view=rev
Author: rich_sposato
Date: 2010-09-16 17:28:52 +0000 (Thu, 16 Sep 2010)
Log Message:
-----------
Used initialization instead of assignment within constructor.
Modified Paths:
--------------
trunk/include/loki/StrongPtr.h
Modified: trunk/include/loki/StrongPtr.h
===================================================================
--- trunk/include/loki/StrongPtr.h 2010-09-16 17:26:29 UTC (rev 1076)
+++ trunk/include/loki/StrongPtr.h 2010-09-16 17:28:52 UTC (rev 1077)
@@ -22,7 +22,12 @@
#include <loki/Threads.h>
#endif
+#if defined( _MSC_VER )
+ #pragma warning( push )
+ #pragma warning( disable: 4355 )
+#endif
+
////////////////////////////////////////////////////////////////////////////////
///
/// \par Terminology
@@ -801,8 +806,9 @@
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 @@
////////////////////////////////////////////////////////////////////////////////
+#if defined( _MSC_VER )
+ #pragma warning( pop )
+#endif
+
#endif // end file guardian
-
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|