Skip to content

Commit

Permalink
refs #9048 Avoid unnecessary shared pointer increment
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Feb 20, 2014
1 parent a56df79 commit f4c9f97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -44,7 +44,7 @@ class DLLExport ConvToMDSelector
public:
/// function which selects the convertor depending on workspace type and (possibly, in a future) some workspace properties
boost::shared_ptr<ConvToMDBase> convSelector(API::MatrixWorkspace_sptr inputWS,
boost::shared_ptr<ConvToMDBase> currentSptr = boost::shared_ptr<ConvToMDBase>())const;
boost::shared_ptr<ConvToMDBase> &currentSptr = boost::shared_ptr<ConvToMDBase>())const;
};
} // end MDAlgorithms Namespace
} // end Mantid Namespace
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/MDEvents/src/ConvToMDSelector.cpp
Expand Up @@ -18,7 +18,7 @@ enum wsType
*@returns shared pointer to new solver, which corresponds to the workspace
*/
boost::shared_ptr<ConvToMDBase> ConvToMDSelector::convSelector(API::MatrixWorkspace_sptr inputWS,
boost::shared_ptr<ConvToMDBase> currentSolver)const
boost::shared_ptr<ConvToMDBase> &currentSolver)const
{
// identify what kind of workspace we expect to process
wsType inputWSType = Undefined;
Expand Down

0 comments on commit f4c9f97

Please sign in to comment.