Ignore:
Timestamp:
Apr 23, 2021, 8:51:43 PM (5 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
d951a5
Parents:
49874c
git-author:
Frederik Heber <frederik.heber@…> (11/27/20 20:25:21)
git-committer:
Frederik Heber <frederik.heber@…> (04/23/21 20:51:43)
Message:

Modified fstream checks to good() or eof().

  • not using != or == NULL.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Fragmentation/Graph.cpp

    r49874c r0f9eb0  
    182182  sprintf(filename, "%s/%s%s", path, FRAGMENTPREFIX, TEFACTORSFILE);
    183183  InputFile.open(filename);
    184   if (InputFile != NULL) {
     184  if (InputFile.good()) {
    185185    // 3. add found TEFactors to each keyset
    186186    NumberOfFragments = 0;
     
    225225  output.open(line.c_str(), ios::out);
    226226  LOG(1, "INFO: Saving TEFactors of the total graph ... ");
    227   if(output != NULL) {
     227  if(output.good()) {
    228228    for(Graph::const_iterator runner = begin(); runner != end(); runner++)
    229229      output << (*runner).second.second << endl;
Note: See TracChangeset for help on using the changeset viewer.