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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user