Skip to content

Commit 11d4a1b

Browse files
committed
added additional const constraints
1 parent a181a17 commit 11d4a1b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/alignment/de_cell.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ dp_cell::dp_cell() :
1111
m_i_matches(0) {
1212
}
1313

14-
int64_t dp_cell::get_max_score(void) {
14+
int64_t dp_cell::get_max_score(void) const {
1515
return std::max(this->m_s_score, std::max(this->m_d_score, this->m_i_score));
1616
}
1717

18-
int32_t dp_cell::get_max_score_matches(void) {
18+
int32_t dp_cell::get_max_score_matches(void) const {
1919
const int64_t max_score = std::max(this->m_s_score, std::max(this->m_d_score, this->m_i_score));
2020
if (max_score == this->m_s_score) {
2121
return this->m_s_matches;

src/alignment/dp_cell.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ class dp_cell {
1616
int32_t m_i_matches;
1717
public:
1818
dp_cell();
19-
int64_t get_max_score(void);
20-
int32_t get_max_score_matches(void);
19+
int64_t get_max_score(void) const;
20+
int32_t get_max_score_matches(void) const;
2121
void score_cell(const dp_cell&, const dp_cell&, const dp_cell&);
2222
void reset_cell(void);
2323

0 commit comments

Comments
 (0)