1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-07 09:43:40 +08:00

Update CCopyableUtlVector to be compatible with clang (#170)

This commit is contained in:
zer0.k 2023-10-24 02:00:14 +02:00 committed by GitHub
parent 3600b56ccf
commit fa4cf0f129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -516,7 +516,7 @@ public:
CCopyableUtlVector( int growSize = 0, int initSize = 0 ) : BaseClass( growSize, initSize ) {}
CCopyableUtlVector( T* pMemory, int numElements ) : BaseClass( pMemory, numElements ) {}
virtual ~CCopyableUtlVector() {}
CCopyableUtlVector( CCopyableUtlVector const& vec ) { CopyArray( vec.Base(), vec.Count() ); }
CCopyableUtlVector( CCopyableUtlVector const& vec ) { this->CopyArray( vec.Base(), vec.Count() ); }
};
// TODO (Ilya): It seems like all the functions in CUtlVector are simple enough that they should be inlined.