Skip to content

Commit da339fe

Browse files
committed
Remove destructor disconnect call for onFadeComplete handler
The `MainMenuState` object owns the `mFade` member field, so `mFade` gets destructed as part of `MainMenuState`. Part of the destruction for the `mFade` field is to disconnect all `Signal` handlers. Thus the manual `disconnect` is redundant.
1 parent fc625e5 commit da339fe

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

appOPHD/States/MainMenuState.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ MainMenuState::~MainMenuState()
3737
eventHandler.keyDown().disconnect({this, &MainMenuState::onKeyDown});
3838

3939
NAS2D::Utility<NAS2D::Mixer>::get().stopAllAudio();
40-
mFade.fadeComplete().disconnect({this, &MainMenuState::onFadeComplete});
4140
}
4241

4342

0 commit comments

Comments
 (0)