From c6210cd71d5ddb7afb764bbfa0e33148e7e428c1 Mon Sep 17 00:00:00 2001 From: Duc Le <duc.le@stfc.ac.uk> Date: Wed, 18 Oct 2017 11:25:55 +0100 Subject: [PATCH] Re #20599 - clang format --- Framework/Algorithms/src/Integration.cpp | 11 +++++------ Framework/DataObjects/src/RebinnedOutput.cpp | 4 ++-- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Framework/Algorithms/src/Integration.cpp b/Framework/Algorithms/src/Integration.cpp index 9afa69e5cbd..f02571f5b11 100644 --- a/Framework/Algorithms/src/Integration.cpp +++ b/Framework/Algorithms/src/Integration.cpp @@ -150,13 +150,12 @@ void Integration::exec() { } // Create the 2D workspace (with 1 bin) for the output - MatrixWorkspace_sptr outputWorkspace = - API::WorkspaceFactory::Instance().create(localworkspace, - maxWsIndex - minWsIndex + 1, - 2, 1); - auto rebinned_input = + MatrixWorkspace_sptr outputWorkspace = + API::WorkspaceFactory::Instance().create( + localworkspace, maxWsIndex - minWsIndex + 1, 2, 1); + auto rebinned_input = boost::dynamic_pointer_cast<const RebinnedOutput>(localworkspace); - auto rebinned_output = + auto rebinned_output = boost::dynamic_pointer_cast<RebinnedOutput>(outputWorkspace); bool is_distrib = outputWorkspace->isDistribution(); diff --git a/Framework/DataObjects/src/RebinnedOutput.cpp b/Framework/DataObjects/src/RebinnedOutput.cpp index 5161541d44b..b6db0094348 100644 --- a/Framework/DataObjects/src/RebinnedOutput.cpp +++ b/Framework/DataObjects/src/RebinnedOutput.cpp @@ -142,8 +142,8 @@ void RebinnedOutput::finalize(bool hasSqrdErrs) { } /** - * This function "unfinalizes" the workspace by taking the data/error arrays - * and multiplying them by the corresponding fractional area array. + * This function "unfinalizes" the workspace by taking the data/error arrays + * and multiplying them by the corresponding fractional area array. * @param hasSqrdErrs :: does the workspace have squared errors? */ void RebinnedOutput::unfinalize(bool hasSqrdErrs) { -- GitLab