Changeset 3167


Ignore:
Timestamp:
Jan 21, 2014, 8:56:03 AM (10 years ago)
Author:
Peter
Message:

avoid temporary variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/omic/BamRead.cc

    r3055 r3167  
    140140  {
    141141    std::ostringstream os;
    142     std::string str = BAM_CIGAR_STR;
    143142    for (uint32_t i=0; i<core().n_cigar; ++i) {
    144143      os << bam_cigar_oplen(bam1_cigar(bam_)[i])
    145          << str[bam_cigar_op(bam1_cigar(bam_)[i])];
     144         << bam_cigar_opchr(bam1_cigar(bam_)[i]);
    146145    }
    147146    return os.str();
Note: See TracChangeset for help on using the changeset viewer.