Skip to content

Commit

Permalink
More consts
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-p committed Jun 2, 2015
1 parent 58dca2d commit f7ab62d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/AlignmentGroup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class AlignmentGroup {
*/
inline void sortHits() {
std::sort(alignments_.begin(), alignments_.end(),
[](FragT& x, FragT& y) -> bool {
[](const FragT& x, const FragT& y) -> bool {
return x->transcriptID() < y->transcriptID();
});
}
Expand Down
2 changes: 1 addition & 1 deletion include/ReadPair.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ struct ReadPair {
}

inline ReadType fragType() { return ReadType::PAIRED_END; }
inline int32_t transcriptID() { return bam_ref(read1); }
inline int32_t transcriptID() const { return bam_ref(read1); }

inline double logQualProb() {
return salmon::math::LOG_1;
Expand Down
2 changes: 1 addition & 1 deletion include/UnpairedRead.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ struct UnpairedRead {
inline int32_t right() { return left() + bam_seq_len(read); }
inline uint32_t fragLen() { return 0; }
inline ReadType fragType() { return ReadType::SINGLE_END; }
inline int32_t transcriptID() { return bam_ref(read); }
inline int32_t transcriptID() const { return bam_ref(read); }

inline double logQualProb() {
return salmon::math::LOG_1;
Expand Down

0 comments on commit f7ab62d

Please sign in to comment.