|
From: <ric...@us...> - 2010-09-16 17:32:30
|
Revision: 1078
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1078&view=rev
Author: rich_sposato
Date: 2010-09-16 17:32:24 +0000 (Thu, 16 Sep 2010)
Log Message:
-----------
Used initialization instead of assignment within constructor.
Modified Paths:
--------------
trunk/include/loki/SmartPtr.h
Modified: trunk/include/loki/SmartPtr.h
===================================================================
--- trunk/include/loki/SmartPtr.h 2010-09-16 17:28:52 UTC (rev 1077)
+++ trunk/include/loki/SmartPtr.h 2010-09-16 17:32:24 UTC (rev 1078)
@@ -54,7 +54,12 @@
#define LOKI_ENABLE_FRIEND_TEMPLATE_TEMPLATE_PARAMETER_WORKAROUND
#endif
+#if defined( _MSC_VER )
+ #pragma warning( push )
+ #pragma warning( disable: 4355 )
+#endif
+
namespace Loki
{
@@ -654,8 +659,9 @@
class LOKI_EXPORT RefLinkedBase
{
protected:
- RefLinkedBase()
- { prev_ = next_ = this; }
+ RefLinkedBase( void ) :
+ prev_( this ), next_( this )
+ {}
RefLinkedBase(const RefLinkedBase& rhs);
@@ -1869,5 +1875,10 @@
};
}
+// ----------------------------------------------------------------------------
+
+#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.
|