┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places/placesitemsignalhandler.cpp
diff options
context:
space:
mode:
authorTomaz Canabrava <[email protected]>2018-06-22 16:03:48 +0200
committerTomaz Canabrava <[email protected]>2018-06-26 11:06:36 +0200
commit9b7ceaa74da3820f43a8743a4824cf5419466791 (patch)
treed25b4c583e1bbb68bfdd23a114a40cecc85a7d9d /src/panels/places/placesitemsignalhandler.cpp
parent9b2a9704ee81c63aa13e646f87242087f88d973b (diff)
parent088e692007363bb2c8cd98487cc36ad63186b2d4 (diff)
don't use temporaries when uneeded
Summary: Remove unused variable Compiled, Run. Trash still there. Use copy ellision Remove uneeded code Reviewers: #dolphin, elvisangelaccio Reviewed By: #dolphin, elvisangelaccio Subscribers: elvisangelaccio, kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D13680
Diffstat (limited to 'src/panels/places/placesitemsignalhandler.cpp')
-rw-r--r--src/panels/places/placesitemsignalhandler.cpp3
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());
}
}
}