COPKGManager: remove useless err_msg var, replaced by tmp_str

This commit is contained in:
2015-05-25 15:31:20 +02:00
parent 9a6aae8f49
commit 79f66537f0
2 changed files with 1 additions and 3 deletions

View File

@@ -427,7 +427,7 @@ int COPKGManager::doUpdate()
{
int r = execCmd(pkg_types[OM_UPDATE]);
if (r == -1) {
string msg = string(g_Locale->getText(LOCALE_OPKG_FAILURE_UPDATE)) + "\n" + err_msg;
string msg = string(g_Locale->getText(LOCALE_OPKG_FAILURE_UPDATE));
DisplayErrorMessage(msg.c_str());
return r;
}
@@ -675,7 +675,6 @@ int COPKGManager::execCmd(const char *cmdstr, bool verbose, bool acknowledge)
int res = 0;
has_err = false;
tmp_str.clear();
err_msg = "";
bool ok = true;
if (verbose) {
//create CShellWindow object

View File

@@ -96,7 +96,6 @@ class COPKGManager : public CMenuTarget
err_list = errlist;
};
void showErr(int* res);
std::string err_msg;
int execCmd(const char* cmdstr, bool verbose = false, bool acknowledge = false);
int execCmd(std::string cmdstr, bool verbose = false, bool acknowledge = false) {