addressed a few things pointed out by static analysis

* marking move assignments noexcept
* using [[fallthrough]] consistently.
* getting rid of alloca.
This commit is contained in:
Christoph Oelckers 2024-01-07 08:46:47 +01:00
commit f13ae3b706
9 changed files with 14 additions and 18 deletions

View file

@ -155,7 +155,7 @@ void DFloor::Tick ()
case genFloorChgT:
case genFloorChg0:
m_Sector->SetSpecial(&m_NewSpecial);
//fall thru
[[fallthrough]];
case genFloorChg:
m_Sector->SetTexture(sector_t::floor, m_Texture);
break;
@ -171,7 +171,7 @@ void DFloor::Tick ()
case genFloorChgT:
case genFloorChg0:
m_Sector->SetSpecial(&m_NewSpecial);
//fall thru
[[fallthrough]];
case genFloorChg:
m_Sector->SetTexture(sector_t::floor, m_Texture);
break;