Skip to content

Commit

Permalink
Refs #10223 Improve const-ness
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Jeffery committed Sep 11, 2014
1 parent 77698d3 commit 862b3b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -54,11 +54,11 @@ namespace MantidQt
//process selected rows
virtual void process();
//make a transmission workspace name
std::string makeTransWSName(const std::string& transString);
std::string makeTransWSName(const std::string& transString) const;
//make a transmission workspace
Mantid::API::MatrixWorkspace_sptr makeTransWS(const std::string& transString);
//Validate a row
void validateRow(size_t rowNo);
void validateRow(size_t rowNo) const;
//Process a row
void processRow(size_t rowNo);
//add row(s) to the model
Expand Down
Expand Up @@ -88,7 +88,7 @@ namespace MantidQt
@param roNow : The row in the model to validate
@throws std::invalid_argument if the row fails validation
*/
void ReflMainViewPresenter::validateRow(size_t rowNo)
void ReflMainViewPresenter::validateRow(size_t rowNo) const
{
const std::string runStr = m_model->String(rowNo, COL_RUNS);
const std::string transStr = m_model->String(rowNo, COL_TRANSMISSION);
Expand Down Expand Up @@ -221,7 +221,7 @@ namespace MantidQt
@param transString : the comma separated transmission run numbers to use
@returns the ADS name the transmission run should be stored as
*/
std::string ReflMainViewPresenter::makeTransWSName(const std::string& transString)
std::string ReflMainViewPresenter::makeTransWSName(const std::string& transString) const
{
std::vector<std::string> transVec;
boost::split(transVec, transString, boost::is_any_of(","));
Expand Down

0 comments on commit 862b3b5

Please sign in to comment.