Skip to content

Commit

Permalink
Merge pull request #16 from MichaelChirico/patch-1
Browse files Browse the repository at this point in the history
remove const qualification of top-level function
  • Loading branch information
jwijffels authored Jan 26, 2023
2 parents f2063fc + f173cc7 commit fcff0e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/doc.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Doc {

const vector<int>& get_ws() const {return ws;}

const int get_w(int i) const {
int get_w(int i) const {
assert(i < ((int)ws.size()));
return ws[i];
}
Expand Down
6 changes: 3 additions & 3 deletions src/pmat.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ class Pmat
}
}

const int rows() const {return array.size();}
const int size() const {return rows();}
const int cols() const {return rows()?array[0].size():0;}
int rows() const {return array.size();}
int size() const {return rows();}
int cols() const {return rows()?array[0].size():0;}

Pvec<T> &operator[] (int m){
if (m >= (int)array.size())
Expand Down

0 comments on commit fcff0e9

Please sign in to comment.