src/file.cpp

changeset 510
ee90c55dfeef
parent 509
dcacfd2cd81b
child 513
29eb671b34f6
equal deleted inserted replaced
509:dcacfd2cd81b 510:ee90c55dfeef
296 { str line = lines() [i]; 296 { str line = lines() [i];
297 297
298 // Trim the trailing newline 298 // Trim the trailing newline
299 qchar c; 299 qchar c;
300 300
301 while (!line.isEmpty() && (c = line[line.length() - 1]) == '\n' || c == '\r') 301 while (!line.isEmpty() && ((c = line[line.length() - 1]) == '\n' || c == '\r'))
302 line.chop (1); 302 line.chop (1);
303 303
304 LDObject* obj = parseLine (line); 304 LDObject* obj = parseLine (line);
305 305
306 // Check for parse errors and warn about tthem 306 // Check for parse errors and warn about tthem

mercurial