Code refactoring
authorRafał Długołęcki <rafal@dlugolecki.net.pl>
Sat, 30 Jan 2016 14:43:35 +0000 (15:43 +0100)
committerRafał Długołęcki <rafal@dlugolecki.net.pl>
Sat, 30 Jan 2016 14:43:35 +0000 (15:43 +0100)
src/edit/editor.cpp
src/kernel/kernel.cpp
src/lgconfig/lgconfig.cpp

index ae59c62df4eb97ecf29f885e07809c785830361b..ffdc94c9cfe89498d8448da2c341006d4d514d5b 100644 (file)
@@ -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 
index ee5e9c753a5630e23e25d28114d35bc478b82258..89b4aab9067c8f4304d745097870706a5a9500aa 100644 (file)
@@ -530,6 +530,8 @@ void QKernel::on_actionKill_triggered()
 
 /**
  * Sends message to the net module.
+ *
+ * \todo method needs to be refactored
  */
 void QKernel::NetMessage()
 {
index 8739358531aecf8c439917a697d1afd65a079e47..2511b5bf02838a63c8ada14d3483e829ed1f2f08 100644 (file)
@@ -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<VLPEntry *> nodesIterator(Nodes);
 
                        while (nodesIterator.hasNext()) {