mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-22 23:33:04 +01:00
Make rct_windowclass strong type WindowClass
This already revealed some places where implicit conversions were done, including some where its use was nonsense (MouseInput.cpp). The changes to the Intent class were necessary to keep things working, and this splits things up more neatly.
This commit is contained in:
@@ -15,7 +15,7 @@ namespace OpenRCT2::Ui
|
||||
class DummyWindowManager final : public IWindowManager
|
||||
{
|
||||
void Init() override{};
|
||||
rct_window* OpenWindow(rct_windowclass /*wc*/) override
|
||||
rct_window* OpenWindow(WindowClass /*wc*/) override
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
@@ -42,7 +42,7 @@ namespace OpenRCT2::Ui
|
||||
void BroadcastIntent(const Intent& /*intent*/) override
|
||||
{
|
||||
}
|
||||
void ForceClose(rct_windowclass /*windowClass*/) override
|
||||
void ForceClose(WindowClass /*windowClass*/) override
|
||||
{
|
||||
}
|
||||
void UpdateMapTooltip() override
|
||||
|
||||
Reference in New Issue
Block a user