Skip to content
Snippets Groups Projects
Commit 745275d9 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

+ const

parent 6e914e58
No related branches found
No related tags found
1 merge request!454Further changes suggested by clang-tidy
......@@ -165,7 +165,7 @@ void GUI::Model::JobFunctions::setupJobItemInstrument(JobItem* jobItem, const In
spec_to->beamItem()->updateFileName(filename);
// copying axis data
auto spec_from = static_cast<const SpecularInstrumentItem*>(from);
const auto spec_from = static_cast<const SpecularInstrumentItem*>(from);
auto axis_origin = getPointwiseAxisItem(spec_from);
const QString current_axis_type = spec_from->beamItem()->inclinationAxisGroup()->currentType();
if (current_axis_type == PointwiseAxisItem::M_TYPE)
......
......@@ -82,7 +82,7 @@ bool CommandChangeValue::mergeWith(const QUndoCommand* command)
if (command->id() != id()) // make sure other is also an AppendText command
return false;
auto other = static_cast<const CommandChangeValue*>(command);
const auto other = static_cast<const CommandChangeValue*>(command);
if (m_path != other->m_path)
return false;
......
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