[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdereview/knetworkconf/knetworkconf
From: Laurent Montel <montel () kde ! org>
Date: 2005-07-14 12:16:20
Message-ID: 1121343380.351049.2652.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 434511 by mlaurent:
Includemoc
Warning--
Fix mem leak
M +7 -4 knetworkconf.cpp
M +2 -0 knetworkconfmodule.cpp
--- trunk/kdereview/knetworkconf/knetworkconf/knetworkconf.cpp #434510:434511
@@ -19,7 +19,7 @@
#include "knetworkconf.h"
-KNetworkConf::KNetworkConf(QWidget *parent, const char *name) : \
KNetworkConfDlg(parent, name), DCOPObject("KNetworkConfIface") \
+KNetworkConf::KNetworkConf(QWidget *parent, const char *name) : \
DCOPObject("KNetworkConfIface"), KNetworkConfDlg(parent, name) {
makeButtonsResizeable();
config = new KNetworkConfigParser();
@@ -51,6 +51,7 @@
KNetworkConf::~KNetworkConf()
{
+ delete config;
}
void KNetworkConf::getNetworkInfoSlot()
@@ -515,7 +516,7 @@
}
}
void KNetworkConf::moveDownServerSlot(){
- unsigned curPos = klbDomainServerList->currentItem();
+ int curPos = klbDomainServerList->currentItem();
unsigned nextPos = klbDomainServerList->currentItem() + 1;
if (curPos != -1)
@@ -801,7 +802,7 @@
item->setText(0,dlg.kleIpAddress->text());
- for ( int i = 0; i < dlg.klbAliases->count(); i++ )
+ for ( uint i = 0; i < dlg.klbAliases->count(); i++ )
aliases += dlg.klbAliases->text(i) + " ";
item->setText(1,aliases);
@@ -844,7 +845,7 @@
item->setText(0,dlg.kleIpAddress->text());
- for ( int i = 0; i < dlg.klbAliases->count(); i++ )
+ for ( uint i = 0; i < dlg.klbAliases->count(); i++ )
_aliases += dlg.klbAliases->text(i) + " ";
item->setText(1,_aliases);
@@ -939,3 +940,5 @@
}
//#include "knetworkconf.moc"
+
+#include "knetworkconf.moc"
--- trunk/kdereview/knetworkconf/knetworkconf/knetworkconfmodule.cpp #434510:434511
@@ -109,3 +109,5 @@
}
//#include "knetworkconfmodule.moc"
+
+#include "knetworkconfmodule.moc"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic