diff options
| author | Elvis Angelaccio <[email protected]> | 2019-11-09 19:50:01 +0100 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2019-11-09 22:09:16 +0100 |
| commit | 3512293b9840dd00c204d9b72ddd28ad26fff9ff (patch) | |
| tree | 591e7f294004053aebb2891fb6404208af1916b4 | |
| parent | 273fc202fd66262ca34adb424897e08137282bab (diff) | |
Fix clazy writing-to-temporary warning
| -rw-r--r-- | src/tests/placesitemmodeltest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/placesitemmodeltest.cpp b/src/tests/placesitemmodeltest.cpp index d066b2ec9..ef8d265f9 100644 --- a/src/tests/placesitemmodeltest.cpp +++ b/src/tests/placesitemmodeltest.cpp @@ -719,8 +719,8 @@ void PlacesItemModelTest::testEditMetadata() schedulePlaceRemoval(tempDirIndex); // modify place metadata - PlacesItem *item = m_model->placesItem(tempDirIndex); - item->bookmark().setMetaDataItem(QStringLiteral("OnlyInApp"), KAboutData::applicationData().componentName()); + auto bookmark = m_model->placesItem(tempDirIndex)->bookmark(); + bookmark.setMetaDataItem(QStringLiteral("OnlyInApp"), KAboutData::applicationData().componentName()); m_model->refresh(); // check if the place was modified in both models |
