Fix clazy writing-to-temporary warning

This commit is contained in:
Elvis Angelaccio 2019-11-09 19:50:01 +01:00
parent 273fc202fd
commit 3512293b98

View file

@ -719,8 +719,8 @@ void PlacesItemModelTest::testEditMetadata()
schedulePlaceRemoval(tempDirIndex); schedulePlaceRemoval(tempDirIndex);
// modify place metadata // modify place metadata
PlacesItem *item = m_model->placesItem(tempDirIndex); auto bookmark = m_model->placesItem(tempDirIndex)->bookmark();
item->bookmark().setMetaDataItem(QStringLiteral("OnlyInApp"), KAboutData::applicationData().componentName()); bookmark.setMetaDataItem(QStringLiteral("OnlyInApp"), KAboutData::applicationData().componentName());
m_model->refresh(); m_model->refresh();
// check if the place was modified in both models // check if the place was modified in both models