mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
Always pass shared_ptr by reference
This commit is contained in:
@@ -143,7 +143,7 @@ private:
|
||||
std::vector<TrackRepositoryItem> _items;
|
||||
|
||||
public:
|
||||
explicit TrackDesignRepository(std::shared_ptr<IPlatformEnvironment> env)
|
||||
explicit TrackDesignRepository(const std::shared_ptr<IPlatformEnvironment>& env)
|
||||
: _env(env),
|
||||
_fileIndex(*env)
|
||||
{
|
||||
@@ -398,7 +398,7 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
ITrackDesignRepository * CreateTrackDesignRepository(std::shared_ptr<IPlatformEnvironment> env)
|
||||
ITrackDesignRepository * CreateTrackDesignRepository(const std::shared_ptr<IPlatformEnvironment>& env)
|
||||
{
|
||||
return new TrackDesignRepository(env);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user