Kaydet (Commit) 7ea8f8af authored tarafından Stephan Bergmann's avatar Stephan Bergmann

clang-analyzer-deadcode.DeadStores

...and reduction of variable scope

Change-Id: I1fa14c04646bf9faf35de9e54969589be64ea006
üst a6aec012
......@@ -90,11 +90,9 @@ LwpFribPtr::LwpFribPtr()
LwpFribPtr::~LwpFribPtr()
{
LwpFrib* pNextFrib = m_pFribs;
LwpFrib* pCurFrib = m_pFribs;
while(pCurFrib)
for (LwpFrib* pCurFrib = m_pFribs; pCurFrib;)
{
pNextFrib = pCurFrib -> GetNext();
LwpFrib* pNextFrib = pCurFrib -> GetNext();
delete pCurFrib;
pCurFrib = pNextFrib;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment