SList::Init: add missing constructor (#33096)

SList::Init uses an assignment operator that doesn't exist.
Because this template class method doesn't get used during
default compilation, most compilers don't detect the issue.
clang 10 detects the issue and gives an error.
This commit is contained in:
Tom Deseyn authored and GitHub committed 2020-03-03 14:45:29 -08:00
1 parent 15f607b34f
commit 200de97087
1 file changed
+2 -2
+2 -2
View File
@@ -160,13 +160,13 @@ public:
void Init()
{
LIMITED_METHOD_CONTRACT;
m_pHead = &m_link;
m_pHead = PTR_SLink(&m_link);
// NOTE :: fHead variable is template argument
// the following code is a compiled in, only if the fHead flag
// is set to false,
if (!fHead)
{
m_pTail = &m_link;
m_pTail = PTR_SLink(&m_link);
}
}