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

merge statements

parent e3e0916d
No related branches found
No related tags found
1 merge request!1578SimResult, Datafield: further clarifications
...@@ -127,9 +127,8 @@ void DataItem::saveDatafield(const QString& projectDir) const ...@@ -127,9 +127,8 @@ void DataItem::saveDatafield(const QString& projectDir) const
return; return;
std::unique_lock<std::mutex> lock(m_update_data_mutex); // TODO why lock?? std::unique_lock<std::mutex> lock(m_update_data_mutex); // TODO why lock??
auto* clone = converted_field()->clone(); std::unique_ptr<const Datafield> field(converted_field()->clone());
lock.unlock(); lock.unlock();
std::unique_ptr<const Datafield> field(clone);
if (m_saveInBackground) { if (m_saveInBackground) {
std::string errorMessage; std::string errorMessage;
......
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