Skip to content

Commit f6bd9b5

Browse files
committed
Refactoring
1 parent 76473aa commit f6bd9b5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

omodsim/menuconnect.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ QSettings& operator <<(QSettings& out, const MenuConnect* menu)
197197
while(it.hasNext())
198198
{
199199
const auto item = it.next();
200-
const QAction* action = it.key();
201-
const ConnectionDetails& cd = it.value();
200+
const QAction* action = item.key();
201+
const ConnectionDetails& cd = item.value();
202202

203203
QByteArray a;
204204
QDataStream ds(&a, QIODevice::WriteOnly);
@@ -224,8 +224,8 @@ QSettings& operator >>(QSettings& in, MenuConnect* menu)
224224
QMapIterator it(menu->_connectionDetailsMap);
225225
while(it.hasNext())
226226
{
227-
auto&& item = it.next();
228-
QAction* action = it.key();
227+
const auto item = it.next();
228+
QAction* action = item.key();
229229

230230
const QByteArray a = in.value("MenuConnect/" + action->property("id").toString()).toByteArray();
231231
if(!a.isEmpty())

0 commit comments

Comments
 (0)