Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 9, 2009, 1:31:32 PM (15 years ago)
Author:
rgrieder
Message:

Replaced all the std::istream::getline(const char*) calls with std::getline(std::ostream, std::string).
This gets rid of these nasty MAX_BUFFER = 1024 (or however long you want to make it) limitations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/netp4/src/core/Language.cc

    r2759 r3123  
    224224        }
    225225
    226         char line[1024];
    227 
    228226        // Iterate through the file and create the LanguageEntries
    229227        while (file.good() && !file.eof())
    230228        {
    231             file.getline(line, 1024);
    232             std::string lineString = std::string(line);
     229            std::string lineString;
     230            std::getline(file, lineString);
    233231
    234232            // Check if the line is empty
     
    272270        }
    273271
    274         char line[1024];
    275 
    276272        // Iterate through the file and create the LanguageEntries
    277273        while (file.good() && !file.eof())
    278274        {
    279             file.getline(line, 1024);
    280             std::string lineString = std::string(line);
     275            std::string lineString;
     276            std::getline(file, lineString);
    281277
    282278            // Check if the line is empty
Note: See TracChangeset for help on using the changeset viewer.