]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/panels/places/placesitemsignalhandler.cpp
Use copy ellision
[dolphin.git] / src / panels / places / placesitemsignalhandler.cpp
index b313f838f33de1952404cb46e6a6a9c27211f13e..1341b741306be17602cc5d8d8187f601aa4eb84d 100644 (file)
@@ -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());
         }
     }
 }