PRIVATE: Fix some coverity issues
This commit is contained in:
parent
8074297b05
commit
c82c6901bc
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue