mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-12 03:39:10 +00:00
Replace empty constructors with default constructors #88
This commit is contained in:
@@ -427,11 +427,11 @@ public:
|
||||
|
||||
#define DECLARE_ATTRIBUTE_ARRAY_VARIABLE( _className, _elementType ) \
|
||||
public: \
|
||||
_className() {}
|
||||
_className() = default;
|
||||
|
||||
#define DECLARE_ATTRIBUTE_ARRAY_REFERENCE( _className, _elementType ) \
|
||||
public: \
|
||||
_className() {} \
|
||||
_className() = default; \
|
||||
_className( CDmAttribute* pAttribute ) { BaseClass::Init( pAttribute ); } \
|
||||
_className( CDmElement *pElement, const char *pAttributeName, bool bAddAttribute = false ) { BaseClass::Init( pElement, pAttributeName, bAddAttribute ); } \
|
||||
_className( CDmaArray<_className>& var ) { BaseClass::Init( var.GetAttribute() ); } \
|
||||
@@ -439,7 +439,7 @@ public:
|
||||
|
||||
#define DECLARE_ATTRIBUTE_ARRAY_CONST_REFERENCE( _className, _elementType ) \
|
||||
public: \
|
||||
_className() {} \
|
||||
_className() = default; \
|
||||
_className( const CDmAttribute* pAttribute ) { BaseClass::Init( pAttribute ); } \
|
||||
_className( const CDmElement *pElement, const char *pAttributeName ) { BaseClass::Init( pElement, pAttributeName ); } \
|
||||
_className( const CDmaArray<_className>& var ) { BaseClass::Init( var.GetAttribute() ); } \
|
||||
|
||||
@@ -116,7 +116,7 @@ template < class T >
|
||||
class CDmAbstractElementFactory : public IDmElementFactoryInternal
|
||||
{
|
||||
public:
|
||||
CDmAbstractElementFactory() {}
|
||||
CDmAbstractElementFactory() = default;
|
||||
|
||||
// Creation, destruction
|
||||
virtual CDmElement* Create( DmElementHandle_t handle, const char *pElementType, const char *pElementName, DmFileId_t fileid, const DmObjectId_t &id )
|
||||
|
||||
Reference in New Issue
Block a user