1
0
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:
Ted John
2018-04-27 18:47:57 +01:00
parent d1cbf998a0
commit 302fe00805
24 changed files with 47 additions and 47 deletions

View File

@@ -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);
}