author | andyq <andyq> | 2002-11-21 20:16:40 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-11-21 20:16:40 (UTC) |
commit | 2185394da06d32a3655e71ec022da202477350e7 (patch) (unidiff) | |
tree | b266ddecaa44a1fef5229bb0525c990d5e7cc51a /noncore/settings/aqpkg/networkpkgmgr.cpp | |
parent | 6d302b82aab909da59852d99a31bcc7726ba9f34 (diff) | |
download | opie-2185394da06d32a3655e71ec022da202477350e7.zip opie-2185394da06d32a3655e71ec022da202477350e7.tar.gz opie-2185394da06d32a3655e71ec022da202477350e7.tar.bz2 |
Re-applied patch for gcc3.2
Diffstat (limited to 'noncore/settings/aqpkg/networkpkgmgr.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/networkpkgmgr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.cpp b/noncore/settings/aqpkg/networkpkgmgr.cpp index d9e62b6..79a380e 100644 --- a/noncore/settings/aqpkg/networkpkgmgr.cpp +++ b/noncore/settings/aqpkg/networkpkgmgr.cpp | |||
@@ -214,13 +214,13 @@ void NetworkPackageManager :: serverSelected( int ) | |||
214 | // read download directory from config file | 214 | // read download directory from config file |
215 | Config cfg( "aqpkg" ); | 215 | Config cfg( "aqpkg" ); |
216 | cfg.setGroup( "settings" ); | 216 | cfg.setGroup( "settings" ); |
217 | cfg.writeEntry( "selectedServer", currentlySelectedServer ); | 217 | cfg.writeEntry( "selectedServer", currentlySelectedServer ); |
218 | #endif | 218 | #endif |
219 | 219 | ||
220 | Server *s = dataMgr->getServer( serverName ); | 220 | vector<Server>::iterator s = dataMgr->getServer( serverName ); |
221 | 221 | ||
222 | vector<Package> &list = s->getPackageList(); | 222 | vector<Package> &list = s->getPackageList(); |
223 | vector<Package>::iterator it; | 223 | vector<Package>::iterator it; |
224 | for ( it = list.begin() ; it != list.end() ; ++it ) | 224 | for ( it = list.begin() ; it != list.end() ; ++it ) |
225 | { | 225 | { |
226 | 226 | ||
@@ -609,13 +609,13 @@ InstallData NetworkPackageManager :: dealWithItem( QCheckListItem *item ) | |||
609 | // if (there is a (installed), remove it | 609 | // if (there is a (installed), remove it |
610 | pos = name.find( "(installed)" ); | 610 | pos = name.find( "(installed)" ); |
611 | if ( pos > 0 ) | 611 | if ( pos > 0 ) |
612 | name.truncate( pos - 1 ); | 612 | name.truncate( pos - 1 ); |
613 | 613 | ||
614 | // Get package | 614 | // Get package |
615 | Server *s = dataMgr->getServer( serversList->currentText() ); | 615 | vector<Server>::iterator s = dataMgr->getServer( serversList->currentText() ); |
616 | Package *p = s->getPackage( name ); | 616 | Package *p = s->getPackage( name ); |
617 | 617 | ||
618 | // If the package has a filename then it is a local file | 618 | // If the package has a filename then it is a local file |
619 | if ( p->isPackageStoredLocally() ) | 619 | if ( p->isPackageStoredLocally() ) |
620 | name = p->getFilename(); | 620 | name = p->getFilename(); |
621 | 621 | ||