diff options
| author | Tomaz Canabrava <[email protected]> | 2018-06-22 15:30:11 +0200 |
|---|---|---|
| committer | Tomaz Canabrava <[email protected]> | 2018-06-22 15:30:11 +0200 |
| commit | 6b72c67b096f23a40fa9a98617742560002f33c2 (patch) | |
| tree | 55ca70cf152f325b7b7d1a577637cab210c861d4 | |
| parent | f5ce8d865b7e9df3f84161734258707679c5b059 (diff) | |
Use copy ellision
| -rw-r--r-- | src/panels/places/placesitemsignalhandler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/panels/places/placesitemsignalhandler.cpp b/src/panels/places/placesitemsignalhandler.cpp index b313f838f..1341b7413 100644 --- a/src/panels/places/placesitemsignalhandler.cpp +++ b/src/panels/places/placesitemsignalhandler.cpp @@ -45,8 +45,7 @@ void PlacesItemSignalHandler::onTearDownRequested(const QString& udi) if (m_item) { Solid::StorageAccess *tmp = m_item->device().as<Solid::StorageAccess>(); if (tmp) { - QString mountPath = tmp->filePath(); - emit tearDownExternallyRequested(mountPath); + emit tearDownExternallyRequested(tmp->filePath()); } } } |
