summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleix Pol <[email protected]>2015-03-05 13:17:55 +0100
committerAleix Pol <[email protected]>2015-03-05 13:17:55 +0100
commit9705cb2cfd9dd407a373fa81950ad3a2b6a8085c (patch)
tree97876f334e32a3223e471761979f23202eee8457
parent711e9daee53327ccc2164406a2ffe102841fd2f3 (diff)
Don't store a temporary value in a const-reference
No win, error-prone.
-rw-r--r--context-menu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/context-menu.cpp b/context-menu.cpp
index 2870aad..58e3d97 100644
--- a/context-menu.cpp
+++ b/context-menu.cpp
@@ -351,7 +351,7 @@ void ContextMenu::onShowInfoTriggered()
if (KTp::kpeopleEnabled()) {
#ifdef HAVE_KPEOPLE
- const QString &personId = m_currentIndex.data(KTp::PersonIdRole).toString();
+ QString personId = m_currentIndex.data(KTp::PersonIdRole).toString();
if (!personId.isEmpty()) {
KPeople::PersonDetailsDialog *view = new KPeople::PersonDetailsDialog(m_mainWidget);
KPeople::PersonData *person = new KPeople::PersonData(personId, view);