1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 03:53:07 +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

@@ -215,7 +215,7 @@ class ObjectRepository final : public IObjectRepository
ObjectEntryMap _itemMap;
public:
explicit ObjectRepository(std::shared_ptr<IPlatformEnvironment> env)
explicit ObjectRepository(const std::shared_ptr<IPlatformEnvironment>& env)
: _env(env),
_fileIndex(*this, *env)
{
@@ -639,7 +639,7 @@ private:
}
};
IObjectRepository * CreateObjectRepository(std::shared_ptr<IPlatformEnvironment> env)
IObjectRepository * CreateObjectRepository(const std::shared_ptr<IPlatformEnvironment>& env)
{
return new ObjectRepository(env);
}