Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Framework/DataHandling/src/LoadNexusProcessed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ API::Workspace_sptr LoadNexusProcessed::loadLeanElasticPeaksEntry(const NXEntry

for (int r = 0; r < numberPeaks; r++) {
// Create individual LeanElasticPeak
const auto goniometer = peakWS->run().getGoniometer();
const auto &goniometer = peakWS->run().getGoniometer();
LeanElasticPeak peak;
peak.setGoniometerMatrix(goniometer.getR());
peak.setRunNumber(peakWS->getRunNumber());
Expand Down Expand Up @@ -1319,7 +1319,7 @@ API::Workspace_sptr LoadNexusProcessed::loadPeaksEntry(const NXEntry &entry) {
// below this one) is set before QLabFrame as this causes Peak to ray trace
// to find the location of the detector, which significantly increases
// loading times.
const auto goniometer = peakWS->run().getGoniometer();
const auto &goniometer = peakWS->run().getGoniometer();
Peak peak;
peak.setInstrument(peakWS->getInstrument());
peak.setGoniometerMatrix(goniometer.getR());
Expand Down Expand Up @@ -1725,7 +1725,7 @@ API::MatrixWorkspace_sptr LoadNexusProcessed::loadNonEventEntry(NXData &wksp_cls

// now check for NaN at end of X which would signify ragged binning
for (size_t i = 0; i < local_workspace->getNumberHistograms(); i++) {
const auto x = local_workspace->readX(i);
const auto &x = local_workspace->readX(i);
const auto idx =
std::distance(x.rbegin(), std::find_if_not(x.rbegin(), x.rend(), [](auto val) { return std::isnan(val); }));
if (idx > 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ ContainerSubtraction::ContainerSubtraction(QWidget *parent) : CorrectionsTab(par
ContainerSubtraction::~ContainerSubtraction() {
m_uiForm.ppPreview->watchADS(false);
if (m_transformedContainerWS) {
auto const containerName = m_transformedContainerWS->getName();
const auto &containerName = m_transformedContainerWS->getName();

// It is not safe to keep the signals connected
(void)m_uiForm.dsContainer->disconnect();
Expand Down