Use copy ellision

This commit is contained in:
Tomaz Canabrava 2018-06-22 15:30:11 +02:00
parent f5ce8d865b
commit 6b72c67b09

View 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());
}
}
}