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

rename local var

parent c968282b
No related branches found
No related tags found
1 merge request!1578SimResult, Datafield: further clarifications
......@@ -121,18 +121,18 @@ void DataItem::saveDatafield(const QString& projectDir) const
if (!m_datafield || !QFile::exists(projectDir))
return;
const auto file = dataFullPath(projectDir);
const auto path = dataFullPath(projectDir);
if (QFile::exists(file) && !wasModifiedSinceLastSave())
if (QFile::exists(path) && !wasModifiedSinceLastSave())
return;
std::unique_lock<std::mutex> lock(m_update_data_mutex);
auto* clone = converted_field()->clone();
lock.unlock();
auto saveLambda = [clone, file] {
auto saveLambda = [clone, path] {
std::unique_ptr<Datafield> field(clone); // for memory management
IOFactory::writeDatafield(*field, file.toStdString());
IOFactory::writeDatafield(*field, path.toStdString());
};
if (m_saveInBackground) {
......
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