mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0024171: Eliminate CLang compiler warning -Wreorder
Got rid of -Wreorder warning (wrong fields' initialization order); some warnings -Wdangling-else are also fixed
This commit is contained in:
@@ -222,9 +222,10 @@ static Standard_Integer GetLine(OSD_File& aFile,TCollection_AsciiString& aLine)
|
||||
do {
|
||||
aFile.ReadLine(Buffer,BufSize,Len);
|
||||
aLine += Buffer;
|
||||
if (aFile.IsAtEnd())
|
||||
if (aFile.IsAtEnd()) {
|
||||
if (!aLine.Length()) return 0;
|
||||
else aLine += "\n";
|
||||
}
|
||||
} while (aLine.Value(aLine.Length()) != '\n');
|
||||
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user