Skip to content
Snippets Groups Projects
Commit a376e24b authored by Jose Borreguero's avatar Jose Borreguero
Browse files

Refs #23175 Apply clang patch

parent fef95bd5
No related branches found
No related tags found
No related merge requests found
......@@ -52,8 +52,9 @@ public:
protected:
API::MatrixWorkspace_sptr execWS2D(const API::MatrixWorkspace &ws1,
const API::MatrixWorkspace &ws2);
API::MatrixWorkspace_sptr execEvent(const DataObjects::EventWorkspace &event_ws1,
const DataObjects::EventWorkspace &event_ws2);
API::MatrixWorkspace_sptr
execEvent(const DataObjects::EventWorkspace &event_ws1,
const DataObjects::EventWorkspace &event_ws2);
using Mantid::API::Algorithm::validateInputs;
void validateInputs(const API::MatrixWorkspace &ws1,
......
......@@ -60,8 +60,10 @@ void AppendSpectra::exec() {
// Retrieve the input workspaces
MatrixWorkspace_const_sptr ws1 = getProperty("InputWorkspace1");
MatrixWorkspace_const_sptr ws2 = getProperty("InputWorkspace2");
DataObjects::EventWorkspace_const_sptr event_ws1 = boost::dynamic_pointer_cast<const EventWorkspace>(ws1);
DataObjects::EventWorkspace_const_sptr event_ws2 = boost::dynamic_pointer_cast<const EventWorkspace>(ws2);
DataObjects::EventWorkspace_const_sptr event_ws1 =
boost::dynamic_pointer_cast<const EventWorkspace>(ws1);
DataObjects::EventWorkspace_const_sptr event_ws2 =
boost::dynamic_pointer_cast<const EventWorkspace>(ws2);
// Make sure that we are not mis-matching EventWorkspaces and other types of
// workspaces
......
......@@ -46,8 +46,10 @@ void ConjoinWorkspaces::exec() {
// Retrieve the input workspaces
MatrixWorkspace_const_sptr ws1 = getProperty("InputWorkspace1");
MatrixWorkspace_const_sptr ws2 = getProperty("InputWorkspace2");
DataObjects::EventWorkspace_const_sptr event_ws1 = boost::dynamic_pointer_cast<const EventWorkspace>(ws1);
DataObjects::EventWorkspace_const_sptr event_ws2 = boost::dynamic_pointer_cast<const EventWorkspace>(ws2);
DataObjects::EventWorkspace_const_sptr event_ws1 =
boost::dynamic_pointer_cast<const EventWorkspace>(ws1);
DataObjects::EventWorkspace_const_sptr event_ws2 =
boost::dynamic_pointer_cast<const EventWorkspace>(ws2);
// Make sure that we are not mis-matching EventWorkspaces and other types of
// workspaces
......
......@@ -118,8 +118,9 @@ MatrixWorkspace_sptr WorkspaceJoiners::execWS2D(const MatrixWorkspace &ws1,
* @throw std::invalid_argument If the input workspaces do not meet the
* requirements of this algorithm
*/
MatrixWorkspace_sptr WorkspaceJoiners::execEvent(const DataObjects::EventWorkspace &event_ws1,
const DataObjects::EventWorkspace &event_ws2) {
MatrixWorkspace_sptr
WorkspaceJoiners::execEvent(const DataObjects::EventWorkspace &event_ws1,
const DataObjects::EventWorkspace &event_ws2) {
// Create the output workspace
const size_t totalHists =
event_ws1.getNumberHistograms() + event_ws2.getNumberHistograms();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment