[Scummvm-git-logs] scummvm master -> aa679e4a87e601100fad2ccee72fb9527d367790
bluegr
noreply at scummvm.org
Fri Nov 8 10:16:28 UTC 2024
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:
aa679e4a87 DGDS: Fix another shadowed variable warning
Commit: aa679e4a87e601100fad2ccee72fb9527d367790
https://github.com/scummvm/scummvm/commit/aa679e4a87e601100fad2ccee72fb9527d367790
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2024-11-08T12:16:18+02:00
Commit Message:
DGDS: Fix another shadowed variable warning
Changed paths:
engines/dgds/sound.cpp
diff --git a/engines/dgds/sound.cpp b/engines/dgds/sound.cpp
index 8af0d42d2c3..283c1e5db5b 100644
--- a/engines/dgds/sound.cpp
+++ b/engines/dgds/sound.cpp
@@ -306,14 +306,14 @@ bool Sound::loadSXSoundData(const Common::String &filename, Common::Array<SoundD
if (!filename.hasSuffixIgnoreCase(".sx"))
error("Unhandled SX file type: %s", filename.c_str());
- Common::SeekableReadStream *stream = _resource->getResource(filename);
+ Common::SeekableReadStream *resStream = _resource->getResource(filename);
- if (!stream) {
+ if (!resStream) {
warning("SX file %s not found", filename.c_str());
return false;
}
- DgdsChunkReader chunk(stream);
+ DgdsChunkReader chunk(resStream);
while (chunk.readNextHeader(EX_SX, filename)) {
if (chunk.isContainer()) {
@@ -345,7 +345,7 @@ bool Sound::loadSXSoundData(const Common::String &filename, Common::Array<SoundD
}
}
- delete stream;
+ delete resStream;
return true;
}
@@ -386,11 +386,11 @@ void Sound::loadSNGSoundData(const Common::String &filename, Common::Array<Sound
if (!filename.hasSuffixIgnoreCase(".sng"))
error("Unhandled SNG file type: %s", filename.c_str());
- Common::SeekableReadStream *resstream = _resource->getResource(filename);
- if (!resstream)
+ Common::SeekableReadStream *resStream = _resource->getResource(filename);
+ if (!resStream)
error("Music file %s not found", filename.c_str());
- DgdsChunkReader chunk(resstream);
+ DgdsChunkReader chunk(resStream);
while (chunk.readNextHeader(EX_SNG, filename)) {
if (chunk.isContainer()) {
@@ -422,7 +422,7 @@ void Sound::loadSNGSoundData(const Common::String &filename, Common::Array<Sound
}
}
- delete resstream;
+ delete resStream;
}
int Sound::mapSfxNum(int num) const {
More information about the Scummvm-git-logs
mailing list