mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-20 13:33:02 +01:00
Remove the use of shared_ptr for the Context (#24404)
* Replace shared_ptr with unique_ptr for Context systems, return refs * Fix all the users * clang-format fix * Fix linux builds
This commit is contained in:
@@ -377,7 +377,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
}
|
||||
|
||||
const auto clip = stream.str();
|
||||
OpenRCT2::GetContext()->GetUiContext()->SetClipboardText(clip.c_str());
|
||||
OpenRCT2::GetContext()->GetUiContext().SetClipboardText(clip.c_str());
|
||||
}
|
||||
|
||||
void SelectObjectFromList(const int32_t index)
|
||||
@@ -421,7 +421,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
if (selected_list_item > -1 && selected_list_item < no_list_items)
|
||||
{
|
||||
const auto name = std::string(_invalidEntries[selected_list_item].GetName());
|
||||
OpenRCT2::GetContext()->GetUiContext()->SetClipboardText(name.c_str());
|
||||
OpenRCT2::GetContext()->GetUiContext().SetClipboardText(name.c_str());
|
||||
}
|
||||
break;
|
||||
case WIDX_COPY_ALL:
|
||||
|
||||
Reference in New Issue
Block a user