Skip to content
Snippets Groups Projects
Commit a70f8f37 authored by Antti Soininen's avatar Antti Soininen
Browse files

Code beautification. Re #24492

parent 5fa05fca
No related merge requests found
...@@ -77,7 +77,8 @@ void Rebin2D::init() { ...@@ -77,7 +77,8 @@ void Rebin2D::init() {
void Rebin2D::exec() { void Rebin2D::exec() {
// Information to form input grid // Information to form input grid
MatrixWorkspace_const_sptr inputWS = getProperty("InputWorkspace"); MatrixWorkspace_const_sptr inputWS = getProperty("InputWorkspace");
const NumericAxis *oldAxis2 = dynamic_cast<API::NumericAxis *>(inputWS->getAxis(1)); const NumericAxis *oldAxis2 =
dynamic_cast<API::NumericAxis *>(inputWS->getAxis(1));
if (!oldAxis2) { if (!oldAxis2) {
throw std::invalid_argument( throw std::invalid_argument(
"Vertical axis is not a numeric axis, cannot rebin. " "Vertical axis is not a numeric axis, cannot rebin. "
......
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