]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Use copy ellision
authorTomaz Canabrava <tcanabrava@kde.org>
Fri, 22 Jun 2018 13:30:11 +0000 (15:30 +0200)
committerTomaz Canabrava <tcanabrava@kde.org>
Fri, 22 Jun 2018 13:30:11 +0000 (15:30 +0200)
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) {
     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());
         }
     }
 }
         }
     }
 }