Skip to content

Commit

Permalink
Refs #4814. Const correctness.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Feb 21, 2012
1 parent 00066c1 commit e435bce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ namespace Mantid
const int indexMax, const double lower,
const double upper, const bool outputWorkspace2D = false);

API::MatrixWorkspace_sptr generateEmptyMask(API::MatrixWorkspace_sptr inputWS, const bool initialize = true);
API::MatrixWorkspace_sptr generateEmptyMask(API::MatrixWorkspace_const_sptr inputWS, const bool initialize = true);

/// Calculate the median of the given workspace. This assumes that the input workspace contains
/// integrated counts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ namespace Mantid
* @param inputWS The workspace to initialize from. The instrument is copied from this.
* @param initialize Whether or not to set all of the values to keep the data.
*/
MatrixWorkspace_sptr DetectorDiagnostic::generateEmptyMask(API::MatrixWorkspace_sptr inputWS, const bool initialize)
MatrixWorkspace_sptr DetectorDiagnostic::generateEmptyMask(API::MatrixWorkspace_const_sptr inputWS, const bool initialize)
{
// Create a new workspace for the results, copy from the input to ensure that we copy over the instrument and current masking
DataObjects::SpecialWorkspace2D* maskWS = new DataObjects::SpecialWorkspace2D();
Expand Down

0 comments on commit e435bce

Please sign in to comment.