Changeset 13999 for trunk


Ignore:
Timestamp:
05/31/12 16:29:01 (12 years ago)
Author:
tbretz
Message:
Added missing const-qualifiers
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/ofits.h

    r13998 r13999  
    614614        h.End();
    615615
    616         Checksum sum = h.WriteHeader(*this);
    617         size_t offset = tellp();
     616        const Checksum sum = h.WriteHeader(*this);
     617
    618618        h.SetStr("CHECKSUM", sum.str());
    619         //header gets updated here. cannot direcly return this otherwise
    620         //1. wrong checksum would be returned (does not matter... now)
    621         //2. cannot restore the correct location of the file's cursor
     619
     620        const size_t offset = tellp();
    622621        h.WriteHeader(*this);
    623622        seekp(offset);
     623
    624624        return sum;
    625625    }
Note: See TracChangeset for help on using the changeset viewer.