X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fsdk%2Flib%2Fatl%2Fatlcoll.h;h=ad8c082d54c094c5d53bba031e44e662cb79d72e;hp=faab14a9887f500178f42d2543f435b98c6db8be;hb=3b42dceffb87a521a63e6a84c269b6f6329e279f;hpb=42336ccb3cf59908952689560b87bc346cbe9165 diff --git a/reactos/sdk/lib/atl/atlcoll.h b/reactos/sdk/lib/atl/atlcoll.h index faab14a9887..ad8c082d54c 100644 --- a/reactos/sdk/lib/atl/atlcoll.h +++ b/reactos/sdk/lib/atl/atlcoll.h @@ -155,6 +155,11 @@ private: m_Element(Element) { } + + /* The CNode class does not support construction by copy */ + private: + CNode(_In_ const CNode&); + CNode& operator=(_In_ const CNode&); }; private: @@ -165,6 +170,11 @@ private: CNode* m_FreeNode; size_t m_NumElements; +/* The CAtlList class does not support construction by copy */ +private: + CAtlList(_In_ const CAtlList&); + CAtlList& operator=(_In_ const CAtlList&); + public: CAtlList(_In_ UINT nBlockSize = 10); ~CAtlList(); @@ -481,7 +491,7 @@ typename CAtlList::CNode* CAtlList::CreateNode( { GetFreeNode(); - CNode* NewNode = GetFreeNode(); + CNode* NewNode = m_FreeNode; CNode* NextFree = m_FreeNode->m_Next; NewNode = new CNode(element);