File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ class dp_cell {
1616 int32_t m_i_matches;
1717public:
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
You can’t perform that action at this time.
0 commit comments