Skip to content

Commit

Permalink
Per #1809, make access to ProbGenInfoArray elements non-constant so t…
Browse files Browse the repository at this point in the history
…hat the tc-gen application can modify their contents.
  • Loading branch information
JohnHalleyGotway committed Nov 12, 2021
1 parent 4141adb commit 3b0a2df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions met/src/libcode/vx_tc_util/prob_info_array.cc
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const ProbInfoBase * ProbInfoArray::operator[](int n) const {

////////////////////////////////////////////////////////////////////////

const ProbRIRWInfo & ProbInfoArray::prob_rirw(int n) const {
ProbRIRWInfo & ProbInfoArray::prob_rirw(int n) {

// Check range
if((n < 0) || (n >= (int) ProbRIRW.size())) {
Expand All @@ -195,7 +195,7 @@ const ProbRIRWInfo & ProbInfoArray::prob_rirw(int n) const {

////////////////////////////////////////////////////////////////////////

const ProbGenInfo & ProbInfoArray::prob_gen(int n) const {
ProbGenInfo & ProbInfoArray::prob_gen(int n) {

// Check range
if((n < 0) || (n >= (int) ProbGen.size())) {
Expand Down
4 changes: 2 additions & 2 deletions met/src/libcode/vx_tc_util/prob_info_array.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ class ProbInfoArray {
const ProbInfoBase * operator[](int) const;

int n_prob_rirw() const;
const ProbRIRWInfo & prob_rirw(int) const;
ProbRIRWInfo & prob_rirw(int);

int n_prob_gen() const;
const ProbGenInfo & prob_gen(int) const;
ProbGenInfo & prob_gen(int);

int n_technique() const;

Expand Down

0 comments on commit 3b0a2df

Please sign in to comment.