summaryrefslogtreecommitdiff
path: root/noncore/net/opietooth/manager/scandialog.cpp
Unidiff
Diffstat (limited to 'noncore/net/opietooth/manager/scandialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/scandialog.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/noncore/net/opietooth/manager/scandialog.cpp b/noncore/net/opietooth/manager/scandialog.cpp
index 0e6e93b..3d6c928 100644
--- a/noncore/net/opietooth/manager/scandialog.cpp
+++ b/noncore/net/opietooth/manager/scandialog.cpp
@@ -160,4 +160,3 @@ namespace OpieTooth {
160 160
161 QList<RemoteDevice> *deviceList = new QList<RemoteDevice>; 161 QValueList<RemoteDevice> deviceList;
162 deviceList->setAutoDelete(true);
163 162
@@ -166,4 +165,4 @@ namespace OpieTooth {
166 if ( ((QCheckListItem*)it.current())->isOn() ) { 165 if ( ((QCheckListItem*)it.current())->isOn() ) {
167 RemoteDevice * device = new RemoteDevice( it.current()->text(1), it.current()->text(0)); 166 RemoteDevice device( it.current()->text(1), it.current()->text(0));
168 deviceList->append( device ); 167 deviceList.append( device );
169 } 168 }
@@ -171,4 +170,3 @@ namespace OpieTooth {
171 qDebug("vor emit"); 170 qDebug("vor emit");
172 emit selectedDevices( *deviceList ); 171 emit selectedDevices( deviceList );
173 delete deviceList;
174 } 172 }