diff options
| author | Tomaz Canabrava <[email protected]> | 2018-06-22 16:03:48 +0200 |
|---|---|---|
| committer | Tomaz Canabrava <[email protected]> | 2018-06-26 11:06:36 +0200 |
| commit | 9b7ceaa74da3820f43a8743a4824cf5419466791 (patch) | |
| tree | d25b4c583e1bbb68bfdd23a114a40cecc85a7d9d /src/panels/places/placesitemsignalhandler.cpp | |
| parent | 9b2a9704ee81c63aa13e646f87242087f88d973b (diff) | |
| parent | 088e692007363bb2c8cd98487cc36ad63186b2d4 (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.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()); } } } |
