diff --git a/Framework/API/src/MatrixWorkspace.cpp b/Framework/API/src/MatrixWorkspace.cpp index 053fde6811ccb6bc6ca7c958729fa6ec6aebb322..0d523b4a07c898f67bd9781d66df6e293fb683fe 100644 --- a/Framework/API/src/MatrixWorkspace.cpp +++ b/Framework/API/src/MatrixWorkspace.cpp @@ -1135,11 +1135,11 @@ MatrixWorkspace::maskedBins(const size_t &workspaceIndex) const { */ void MatrixWorkspace::setMonitorWorkspace( const boost::shared_ptr<MatrixWorkspace> &monitorWS) { - if (monitorWS.get() == this) { - throw std::runtime_error( - "To avoid memory leak, monitor workspace" - " can not be the same workspace as the host workspace"); - } + if (monitorWS.get() == this) { + throw std::runtime_error( + "To avoid memory leak, monitor workspace" + " can not be the same workspace as the host workspace"); + } m_monitorWorkspace = monitorWS; } diff --git a/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspace.cpp b/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspace.cpp index 288d897dd37f463fc7ae02aae887df9a12aa31dc..2f6cdb9bddca741008f2c17cede38cb09f0985dd 100644 --- a/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspace.cpp +++ b/Framework/PythonInterface/mantid/api/src/Exports/MatrixWorkspace.cpp @@ -93,7 +93,7 @@ void setMonitorWorkspace(MatrixWorkspace &self, } /** * @param self :: A reference to the calling object -* +* *@return weak pointer to monitor workspace used by python */ boost::weak_ptr<Workspace> getMonitorWorkspace(MatrixWorkspace &self) { @@ -351,8 +351,7 @@ void export_MatrixWorkspace() { "Performs a comparison operation on two workspaces, using the " "CheckWorkspacesMatch algorithm") //--------- monitor workspace -------------------------------------- - .def("getMonitorWorkspace", &getMonitorWorkspace, - args("self"), + .def("getMonitorWorkspace", &getMonitorWorkspace, args("self"), "Return internal monitor workspace bound to current workspace.") .def("setMonitorWorkspace", &setMonitorWorkspace, args("self", "MonitorWS"),