From: Rafał Długołęcki Date: Sat, 30 Jan 2016 14:43:35 +0000 (+0100) Subject: Code refactoring X-Git-Tag: 3.4-b1~13 X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=384b67e0232e553151dfdc9caffd255c5f597d2b;p=vlp.git Code refactoring --- 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()) {