Used initialization instead of assignment within constructor.
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1078 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
dca1d96724
commit
75ce7d41ba
1 changed files with 14 additions and 3 deletions
|
@ -54,6 +54,11 @@
|
||||||
#define LOKI_ENABLE_FRIEND_TEMPLATE_TEMPLATE_PARAMETER_WORKAROUND
|
#define LOKI_ENABLE_FRIEND_TEMPLATE_TEMPLATE_PARAMETER_WORKAROUND
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined( _MSC_VER )
|
||||||
|
#pragma warning( push )
|
||||||
|
#pragma warning( disable: 4355 )
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
namespace Loki
|
namespace Loki
|
||||||
{
|
{
|
||||||
|
@ -654,8 +659,9 @@ namespace Loki
|
||||||
class LOKI_EXPORT RefLinkedBase
|
class LOKI_EXPORT RefLinkedBase
|
||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
RefLinkedBase()
|
RefLinkedBase( void ) :
|
||||||
{ prev_ = next_ = this; }
|
prev_( this ), next_( this )
|
||||||
|
{}
|
||||||
|
|
||||||
RefLinkedBase(const RefLinkedBase& rhs);
|
RefLinkedBase(const RefLinkedBase& rhs);
|
||||||
|
|
||||||
|
@ -1869,5 +1875,10 @@ namespace std
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // end file guardian
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
#if defined( _MSC_VER )
|
||||||
|
#pragma warning( pop )
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // end file guardian
|
||||||
|
|
Loading…
Add table
Reference in a new issue