opkg_manager: avoid [-Wshadow] warnings

This commit is contained in:
2023-03-07 10:34:01 +01:00
parent a45da38266
commit d647451879

View File

@@ -218,11 +218,11 @@ int COPKGManager::exec(CMenuTarget* parent, const string &actionKey)
if (fileBrowser.exec((*local_dir).c_str())) if (fileBrowser.exec((*local_dir).c_str()))
{ {
string pkg_name = fileBrowser.getSelectedFile()->Name; string package = fileBrowser.getSelectedFile()->Name;
if (!installPackage(pkg_name)) if (!installPackage(package))
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), NULL, pkg_name); showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), NULL, package);
/* errno is never set properly, the string is totally useless. /* errno is never set properly, the string is totally useless.
showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), strerror(errno), pkg_name); showError(g_Locale->getText(LOCALE_OPKG_FAILURE_INSTALL), strerror(errno), package);
*/ */
*local_dir = fileBrowser.getCurrentDir(); *local_dir = fileBrowser.getCurrentDir();