author | benmeyer <benmeyer> | 2002-11-08 16:16:11 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-11-08 16:16:11 (UTC) |
commit | e0db2259cc26cab12c6f1131b82dd867c454a3ff (patch) (unidiff) | |
tree | e251396e5e96839aed5bf6a930dff37fefe5acc0 /noncore/net/networksetup/addconnectionimp.cpp | |
parent | d8ac5b68b504536136347547816992b1cf605cd4 (diff) | |
download | opie-e0db2259cc26cab12c6f1131b82dd867c454a3ff.zip opie-e0db2259cc26cab12c6f1131b82dd867c454a3ff.tar.gz opie-e0db2259cc26cab12c6f1131b82dd867c454a3ff.tar.bz2 |
Code Optimizations
Diffstat (limited to 'noncore/net/networksetup/addconnectionimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/networksetup/addconnectionimp.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/noncore/net/networksetup/addconnectionimp.cpp b/noncore/net/networksetup/addconnectionimp.cpp index 53db0fc..07545f7 100644 --- a/noncore/net/networksetup/addconnectionimp.cpp +++ b/noncore/net/networksetup/addconnectionimp.cpp | |||
@@ -17,16 +17,15 @@ AddConnectionImp::AddConnectionImp(QWidget *parent, const char *name, WFlags f): | |||
17 | */ | 17 | */ |
18 | void AddConnectionImp::changed(){ | 18 | void AddConnectionImp::changed(){ |
19 | QListViewItem *item = registeredServicesList->currentItem(); | 19 | QListViewItem *item = registeredServicesList->currentItem(); |
20 | if(item){ | 20 | if(item) |
21 | help->setText(list[item->text(0)]); | 21 | help->setText(list[item->text(0)]); |
22 | } | ||
23 | } | 22 | } |
24 | 23 | ||
25 | /** | 24 | /** |
26 | * Save a copy of newList for the discriptions and append them all to the view | 25 | * Save a copy of newList for the discriptions and append them all to the view |
27 | * @param newList the new list of possible interfaces | 26 | * @param newList the new list of possible interfaces |
28 | */ | 27 | */ |
29 | void AddConnectionImp::addConnections(QMap<QString, QString> newList){ | 28 | void AddConnectionImp::addConnections(const QMap<QString, QString> &newList){ |
30 | list = newList; | 29 | list = newList; |
31 | QMap<QString, QString>::Iterator it; | 30 | QMap<QString, QString>::Iterator it; |
32 | for( it = list.begin(); it != list.end(); ++it ) | 31 | for( it = list.begin(); it != list.end(); ++it ) |