mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fix unintended copy in range based for loop
This commit is contained in:
parent
b69e9abce3
commit
ead1e2af29
@ -170,7 +170,7 @@ void PdmUiToolBarEditor::setFields(std::vector<caf::PdmFieldHandle*>& fields)
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void PdmUiToolBarEditor::clear()
|
void PdmUiToolBarEditor::clear()
|
||||||
{
|
{
|
||||||
for (auto it : m_fieldViews)
|
for (const auto& it : m_fieldViews)
|
||||||
{
|
{
|
||||||
delete it.second;
|
delete it.second;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user