1
0
Fork 0

apt.dat parser: indentation fixes; add a comment

- The first place where indentation is fixed was really misleading, at
  least.

- The added comment "'line' may end with an \r character [...]" just
  clarifies something that has been there for ages, to avoid people
  falling into the trap.
This commit is contained in:
Florent Rougon 2016-04-24 20:10:10 +02:00
parent d85fc7b7e7
commit 2b8937c2c2

View file

@ -129,6 +129,7 @@ public:
throwExceptionIfStreamError(in, "apt.dat", apt_dat);
while ( std::getline(in, line) ) {
// 'line' may end with an \r character, see above
line_num++;
if ( isBlankOrCommentLine(line) )