From b872015ced25ba7c19c42b00008a395f2180744a 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 91cc4c0fe..7e73edc3b 100644 --- a/alethzero/MainWin.cpp +++ b/alethzero/MainWin.cpp @@ -349,8 +349,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();