From 384b67e0232e553151dfdc9caffd255c5f597d2b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Sat, 30 Jan 2016 15:43:35 +0100 Subject: [PATCH] Code refactoring --- src/edit/editor.cpp | 3 ++- src/kernel/kernel.cpp | 2 ++ src/lgconfig/lgconfig.cpp | 9 +++++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/edit/editor.cpp b/src/edit/editor.cpp index ae59c62..ffdc94c 100644 --- a/src/edit/editor.cpp +++ b/src/edit/editor.cpp @@ -174,7 +174,8 @@ void Editor::compile(int mode) void Editor::on_actionNew_triggered() { on_actionClear_all_triggered(); - fname.sprintf("%s", "");} + fname.sprintf("%s", ""); +} /** * Displays additional window diff --git a/src/kernel/kernel.cpp b/src/kernel/kernel.cpp index ee5e9c7..89b4aab 100644 --- a/src/kernel/kernel.cpp +++ b/src/kernel/kernel.cpp @@ -530,6 +530,8 @@ void QKernel::on_actionKill_triggered() /** * Sends message to the net module. + * + * \todo method needs to be refactored */ void QKernel::NetMessage() { diff --git a/src/lgconfig/lgconfig.cpp b/src/lgconfig/lgconfig.cpp index 8739358..2511b5b 100644 --- a/src/lgconfig/lgconfig.cpp +++ b/src/lgconfig/lgconfig.cpp @@ -37,12 +37,13 @@ void QInstall::on_actionConfigure_triggered() { dialog::NodeListDialog dialog(&Nodes, this); - VLPEntry *pom; - int i; - char pomstr[255]; - if (dialog.exec()) { if (!Nodes.isEmpty()) { + + VLPEntry *pom; + int i; + char pomstr[255]; + QListIterator nodesIterator(Nodes); while (nodesIterator.hasNext()) { -- 2.30.2