simplify previous commit do/while -> while
This commit is contained in:
@@ -1458,13 +1458,9 @@ bool BulletMJCFImporter::loadMJCF(const char* fileName, MJCFErrorLogger* logger,
|
|||||||
|
|
||||||
char destBuffer[8192];
|
char destBuffer[8192];
|
||||||
char* line = 0;
|
char* line = 0;
|
||||||
do
|
while (m_data->m_fileIO->readLine(fileId, destBuffer, 8192))
|
||||||
{
|
{
|
||||||
line = m_data->m_fileIO->readLine(fileId, destBuffer, 8192);
|
xml_string += (std::string(destBuffer) + "\n");
|
||||||
if (line)
|
|
||||||
{
|
|
||||||
xml_string += (std::string(destBuffer) + "\n");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
while (line);
|
while (line);
|
||||||
m_data->m_fileIO->fileClose(fileId);
|
m_data->m_fileIO->fileClose(fileId);
|
||||||
|
|||||||
Reference in New Issue
Block a user