BAGEL: Change the type pour CBagSoundObject::newSound to avoid an unused return value

This commit is contained in:
Strangerke 2024-05-19 13:25:27 +01:00
parent a17658a6f4
commit c2727b1d1d
2 changed files with 2 additions and 7 deletions

View File

@ -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() {

View File

@ -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 {