[Scummvm-git-logs] scummvm master -> 8a061ee82dea18a351a8905f8f4d2322d4bb8828
digitall
dgturner at iee.org
Sun Jan 15 15:19:45 CET 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
8a061ee82d GNAP: Fix Set-But-Unused Variable Compiler Warning.
Commit: 8a061ee82dea18a351a8905f8f4d2322d4bb8828
https://github.com/scummvm/scummvm/commit/8a061ee82dea18a351a8905f8f4d2322d4bb8828
Author: D G Turner (digitall at scummvm.org)
Date: 2017-01-15T14:26:11Z
Commit Message:
GNAP: Fix Set-But-Unused Variable Compiler Warning.
Changed paths:
engines/gnap/debugger.cpp
engines/gnap/debugger.h
engines/gnap/gnap.cpp
diff --git a/engines/gnap/debugger.cpp b/engines/gnap/debugger.cpp
index 07f3f67..9755f07 100644
--- a/engines/gnap/debugger.cpp
+++ b/engines/gnap/debugger.cpp
@@ -25,7 +25,7 @@
namespace Gnap {
-Debugger::Debugger(GnapEngine *vm) : GUI::Debugger(), _vm(vm) {
+Debugger::Debugger() : GUI::Debugger() {
// Register methods
registerCmd("hotspots", WRAP_METHOD(Debugger, Cmd_Hotspots));
diff --git a/engines/gnap/debugger.h b/engines/gnap/debugger.h
index ac83cc5..b476fc4 100644
--- a/engines/gnap/debugger.h
+++ b/engines/gnap/debugger.h
@@ -31,8 +31,6 @@ namespace Gnap {
class GnapEngine;
class Debugger : public GUI::Debugger {
-private:
- GnapEngine *_vm;
public:
/*
* Specifies whether to show the hotspot IDs
@@ -45,7 +43,7 @@ protected:
bool Cmd_Hotspots(int argc, const char **argv);
public:
- Debugger(GnapEngine *vm);
+ Debugger();
virtual ~Debugger() {}
};
diff --git a/engines/gnap/gnap.cpp b/engines/gnap/gnap.cpp
index 809e711..9289053 100644
--- a/engines/gnap/gnap.cpp
+++ b/engines/gnap/gnap.cpp
@@ -248,7 +248,7 @@ Common::Error GnapEngine::run() {
_sequenceCache = new SequenceCache(_dat);
_gameSys = new GameSys(this);
_soundMan = new SoundMan(this);
- _debugger = new Debugger(this);
+ _debugger = new Debugger();
_gnap = new PlayerGnap(this);
_plat = new PlayerPlat(this);
More information about the Scummvm-git-logs
mailing list