Changeset 16840


Ignore:
Timestamp:
06/14/13 11:15:14 (12 years ago)
Author:
lyard
Message:
bug fix and emplace_back
File:
1 edited

Legend:

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

    r16825 r16840  
    502502                if (!good())
    503503                    break;
    504                 catalog.back().push_back(make_pair((int64_t)(columnHead.size),offsetInHeap));
     504                catalog.back().emplace_back(make_pair((int64_t)(columnHead.size),offsetInHeap));
    505505                offsetInHeap += columnHead.size;
    506506                seekg(fHeapOff+offsetInHeap);
     
    510510            if (!good())
    511511            {
     512                catalog.pop_back();
    512513                break;
    513                 catalog.pop_back();
    514514            }
    515515
Note: See TracChangeset for help on using the changeset viewer.