PRIVATE: Fix some coverity issues

This commit is contained in:
Matthew Duggan 2021-03-07 18:14:01 +09:00
parent 8074297b05
commit c82c6901bc
2 changed files with 4 additions and 2 deletions

View file

@ -47,7 +47,9 @@ PrivateEngine *g_private = NULL;
extern int parse(char *); extern int parse(char *);
PrivateEngine::PrivateEngine(OSystem *syst, const ADGameDescription *gd) PrivateEngine::PrivateEngine(OSystem *syst, const ADGameDescription *gd)
: Engine(syst), _gameDescription(gd) { : Engine(syst), _gameDescription(gd), _image(nullptr), _videoDecoder(nullptr),
_compositeSurface(nullptr), _transparentColor(0), _frame(nullptr),
_maxNumberClicks(0), _sirenWarning(0), _screenW(0), _screenH(0) {
_rnd = new Common::RandomSource("private"); _rnd = new Common::RandomSource("private");
// Debug channels // Debug channels

View file

@ -75,7 +75,7 @@ void setSymbol(Symbol *s, int v) {
} }
/* find s in symbol table symlist */ /* find s in symbol table symlist */
static Symbol *lookup(const Common::String &s, SymbolMap symlist) { static Symbol *lookup(const Common::String &s, const SymbolMap &symlist) {
Symbol *r = symlist.getVal(s); Symbol *r = symlist.getVal(s);
return r; return r;
} }