cppcheck experiment. A couple of memory leaks fixed

This commit is contained in:
bsongis
2014-02-26 16:10:12 +01:00
parent 33091c295f
commit 86c0678273
13 changed files with 35 additions and 41 deletions
@@ -151,7 +151,7 @@ bool Ersky9xInterface::loadxml(RadioData &radioData, QDomDocument &doc)
return true;
}
bool Ersky9xInterface::load(RadioData &radioData, uint8_t *eeprom, int size)
bool Ersky9xInterface::load(RadioData &radioData, const uint8_t *eeprom, int size)
{
std::cout << "trying ersky9x import... ";
@@ -160,7 +160,7 @@ bool Ersky9xInterface::load(RadioData &radioData, uint8_t *eeprom, int size)
return false;
}
if (!efile->EeFsOpen(eeprom, size, BOARD_SKY9X)) {
if (!efile->EeFsOpen((uint8_t *)eeprom, size, BOARD_SKY9X)) {
std::cout << "wrong file system\n";
return false;
}