mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 13:50:04 +00:00
simplify previous commit do/while -> while
This commit is contained in:
parent
7a7652fd43
commit
6b9b30786f
@ -1458,13 +1458,9 @@ bool BulletMJCFImporter::loadMJCF(const char* fileName, MJCFErrorLogger* logger,
|
||||
|
||||
char destBuffer[8192];
|
||||
char* line = 0;
|
||||
do
|
||||
while (m_data->m_fileIO->readLine(fileId, destBuffer, 8192))
|
||||
{
|
||||
line = m_data->m_fileIO->readLine(fileId, destBuffer, 8192);
|
||||
if (line)
|
||||
{
|
||||
xml_string += (std::string(destBuffer) + "\n");
|
||||
}
|
||||
xml_string += (std::string(destBuffer) + "\n");
|
||||
}
|
||||
while (line);
|
||||
m_data->m_fileIO->fileClose(fileId);
|
||||
|
Loading…
Reference in New Issue
Block a user