From f9604289410f5a4223472dad8bc82864c023e54f Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Sat, 25 Jul 2015 22:13:49 +0200 Subject: [PATCH] Fix const& where it should have been value. --- alethzero/MainWin.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/alethzero/MainWin.cpp b/alethzero/MainWin.cpp index 97e2ba032..4d279e649 100644 --- a/alethzero/MainWin.cpp +++ b/alethzero/MainWin.cpp @@ -360,8 +360,7 @@ void Main::refreshWhisper() void Main::addNewId(QString _ids) { - Secret const& id = jsToSecret(_ids.toStdString()); - KeyPair kp(id); + KeyPair kp(jsToSecret(_ids.toStdString())); m_myIdentities.push_back(kp); m_server->setIdentities(keysAsVector(owned())); refreshWhisper();