From 6b72c67b096f23a40fa9a98617742560002f33c2 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 22 Jun 2018 15:30:11 +0200 Subject: [PATCH] Use copy ellision --- src/panels/places/placesitemsignalhandler.cpp | 3 +-- 1 file changed, 1 insertion(+), 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(); if (tmp) { - QString mountPath = tmp->filePath(); - emit tearDownExternallyRequested(mountPath); + emit tearDownExternallyRequested(tmp->filePath()); } } } -- 2.47.3