PLY: Remove dead assignment and reduce scope of a variable
parent
97843f19d2
commit
b49a4e1338
|
@ -671,7 +671,6 @@ bool PLY::ElementInstanceList::ParseInstanceList(
|
||||||
PLYImporter* loader)
|
PLYImporter* loader)
|
||||||
{
|
{
|
||||||
ai_assert(NULL != pcElement);
|
ai_assert(NULL != pcElement);
|
||||||
const char* pCur = (const char*)&buffer[0];
|
|
||||||
|
|
||||||
// parse all elements
|
// parse all elements
|
||||||
if (EEST_INVALID == pcElement->eSemantic || pcElement->alProperties.empty())
|
if (EEST_INVALID == pcElement->eSemantic || pcElement->alProperties.empty())
|
||||||
|
@ -683,11 +682,11 @@ bool PLY::ElementInstanceList::ParseInstanceList(
|
||||||
PLY::DOM::SkipComments(buffer);
|
PLY::DOM::SkipComments(buffer);
|
||||||
PLY::DOM::SkipLine(buffer);
|
PLY::DOM::SkipLine(buffer);
|
||||||
streamBuffer.getNextLine(buffer);
|
streamBuffer.getNextLine(buffer);
|
||||||
pCur = (buffer.empty()) ? NULL : (const char*)&buffer[0];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
const char* pCur = (const char*)&buffer[0];
|
||||||
// be sure to have enough storage
|
// be sure to have enough storage
|
||||||
for (unsigned int i = 0; i < pcElement->NumOccur; ++i)
|
for (unsigned int i = 0; i < pcElement->NumOccur; ++i)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue