From d480c788c2ad4dbc5996bc4adf2548c4daeb6f1c Mon Sep 17 00:00:00 2001 From: Wenduo Zhou <zhouw@ornl.gov> Date: Wed, 7 Oct 2015 16:46:07 -0400 Subject: [PATCH] Refs #13614. Attempted to fix clang-format error. --- .../DataHandling/src/LoadSpiceXML2DDet.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Code/Mantid/Framework/DataHandling/src/LoadSpiceXML2DDet.cpp b/Code/Mantid/Framework/DataHandling/src/LoadSpiceXML2DDet.cpp index b3797fd2bce..5defd4a05be 100644 --- a/Code/Mantid/Framework/DataHandling/src/LoadSpiceXML2DDet.cpp +++ b/Code/Mantid/Framework/DataHandling/src/LoadSpiceXML2DDet.cpp @@ -265,23 +265,19 @@ void LoadSpiceXML2DDet::exec() { // Set up log if (spicetablewsname.size() > 0) { setupSampleLogFromSpiceTable(outws, spicetablews, ptnumber); - } - else - { + } else { // Set up 2theta from _2theta - if (outws->run().hasProperty("_2theta")) - { + if (outws->run().hasProperty("_2theta")) { Kernel::DateAndTime anytime(1000); - double logvalue = atof(outws->run().getProperty("_2theta")->value().c_str()); + double logvalue = + atof(outws->run().getProperty("_2theta")->value().c_str()); g_log.information() << "Set 2theta from _2theta with value " << logvalue << "\n"; TimeSeriesProperty<double> *newlogproperty = new TimeSeriesProperty<double>("2theta"); newlogproperty->addValue(anytime, logvalue); outws->mutableRun().addProperty(newlogproperty); - } - else - { + } else { g_log.warning("No 2theta is set up for loading instrument."); } } -- GitLab