COIN-OR::LEMON - Graph Library

Changeset 172:c94a80f38d7f in lemon-1.2 for lemon


Ignore:
Timestamp:
06/16/08 18:19:07 (16 years ago)
Author:
Balazs Dezso <deba@…>
Branch:
default
Phase:
public
Message:

Clarifying the usage of skipSection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/lgf_reader.h

    r165 r172  
    11401140      line_num = 0;     
    11411141      readLine();
     1142      skipSection();
    11421143
    11431144      while (readSuccess()) {
    1144         skipSection();
    11451145        try {
    11461146          char c;
     
    11791179              extra_sections.insert(section);
    11801180              it->second->process(*_is, line_num);
    1181               readLine();
    1182             } else {
    1183               readLine();
    1184               skipSection();
    11851181            }
     1182            readLine();
     1183            skipSection();
    11861184          }
    11871185        } catch (DataFormatError& error) {
     
    19821980      line_num = 0;     
    19831981      readLine();
     1982      skipSection();
    19841983
    19851984      while (readSuccess()) {
    1986         skipSection();
    19871985        try {
    19881986          char c;
     
    20212019              extra_sections.insert(section);
    20222020              it->second->process(*_is, line_num);
    2023               readLine();
    2024             } else {
    2025               readLine();
    2026               skipSection();
    20272021            }
     2022            readLine();
     2023            skipSection();
    20282024          }
    20292025        } catch (DataFormatError& error) {
Note: See TracChangeset for help on using the changeset viewer.