mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
(performance) Prefer prefix ++/-- operators for non-primitive types
This commit is contained in:
@@ -394,7 +394,7 @@ void COPKGManager::updateMenu()
|
||||
bool upgradesAvailable = false;
|
||||
getPkgData(OM_LIST_INSTALLED);
|
||||
getPkgData(OM_LIST_UPGRADEABLE);
|
||||
for (map<string, struct pkg>::iterator it = pkg_map.begin(); it != pkg_map.end(); it++) {
|
||||
for (map<string, struct pkg>::iterator it = pkg_map.begin(); it != pkg_map.end(); ++it) {
|
||||
/* this should no longer trigger at all */
|
||||
if (badpackage(it->second.name))
|
||||
continue;
|
||||
@@ -446,7 +446,7 @@ bool COPKGManager::checkUpdates(const std::string & package_name, bool show_prog
|
||||
if (show_progress)
|
||||
status.showStatus(75);
|
||||
|
||||
for (map<string, struct pkg>::iterator it = pkg_map.begin(); it != pkg_map.end(); it++){
|
||||
for (map<string, struct pkg>::iterator it = pkg_map.begin(); it != pkg_map.end(); ++it){
|
||||
dprintf(DEBUG_INFO, "[COPKGManager] [%s - %d] Update check for...%s\n", __func__, __LINE__, it->second.name.c_str());
|
||||
if (show_progress){
|
||||
/* showing the names only makes things *much* slower...
|
||||
@@ -541,7 +541,7 @@ int COPKGManager::showMenu()
|
||||
menu->addKey(CRCInput::RC_yellow, this, "rc_yellow");
|
||||
|
||||
pkg_vec.clear();
|
||||
for (map<string, struct pkg>::iterator it = pkg_map.begin(); it != pkg_map.end(); it++) {
|
||||
for (map<string, struct pkg>::iterator it = pkg_map.begin(); it != pkg_map.end(); ++it) {
|
||||
/* this should no longer trigger at all */
|
||||
if (badpackage(it->second.name))
|
||||
continue;
|
||||
@@ -629,14 +629,14 @@ void COPKGManager::getPkgData(const int pkg_content_id)
|
||||
if (list_installed_done)
|
||||
return;
|
||||
list_installed_done = true;
|
||||
for (map<string, struct pkg>::iterator it = pkg_map.begin(); it != pkg_map.end(); it++)
|
||||
for (map<string, struct pkg>::iterator it = pkg_map.begin(); it != pkg_map.end(); ++it)
|
||||
it->second.installed = false;
|
||||
break;
|
||||
case OM_LIST_UPGRADEABLE:
|
||||
if (list_upgradeable_done)
|
||||
return;
|
||||
list_upgradeable_done = true;
|
||||
for (map<string, struct pkg>::iterator it = pkg_map.begin(); it != pkg_map.end(); it++)
|
||||
for (map<string, struct pkg>::iterator it = pkg_map.begin(); it != pkg_map.end(); ++it)
|
||||
it->second.upgradable = false;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user