mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-12 20:17:49 +00:00
BAGEL: Change the type pour CBagSoundObject::newSound to avoid an unused return value
This commit is contained in:
parent
a17658a6f4
commit
c2727b1d1d
@ -62,17 +62,12 @@ ErrorCode CBagSoundObject::attach(CBofWindow *pWnd) {
|
||||
return CBagObject::attach();
|
||||
}
|
||||
|
||||
ErrorCode CBagSoundObject::newSound(CBofWindow *pWin) {
|
||||
// assume no error
|
||||
ErrorCode errorCode = ERR_NONE;
|
||||
|
||||
void CBagSoundObject::newSound(CBofWindow *pWin) {
|
||||
killSound();
|
||||
|
||||
_pSound = new CBofSound(pWin, getFileName(), _wFlags, _nLoops);
|
||||
_pSound->setVolume(_nVol);
|
||||
_pSound->setQSlot(getState());
|
||||
|
||||
return errorCode;
|
||||
}
|
||||
|
||||
void CBagSoundObject::killSound() {
|
||||
|
@ -50,7 +50,7 @@ public:
|
||||
static void initialize();
|
||||
|
||||
void killSound();
|
||||
ErrorCode newSound(CBofWindow *pWin);
|
||||
void newSound(CBofWindow *pWin);
|
||||
|
||||
// Return true if the Object had members that are properly initialized/de-initialized
|
||||
ErrorCode attach() override {
|
||||
|
Loading…
Reference in New Issue
Block a user