mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-25 15:54:31 +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:
@@ -117,8 +117,8 @@ static std::string ScreenshotGetParkName()
|
||||
|
||||
static std::string ScreenshotGetDirectory()
|
||||
{
|
||||
auto env = GetContext()->GetPlatformEnvironment();
|
||||
return env->GetDirectoryPath(DirBase::user, DirId::screenshots);
|
||||
auto& env = GetContext()->GetPlatformEnvironment();
|
||||
return env.GetDirectoryPath(DirBase::user, DirId::screenshots);
|
||||
}
|
||||
|
||||
static std::pair<RealWorldDate, RealWorldTime> ScreenshotGetDateTime()
|
||||
|
||||
Reference in New Issue
Block a user