Always pass shared_ptr by reference

This commit is contained in:
Ted John committed 2018-05-11 20:39:00 +01:00
1 parent d1cbf998a0
commit 302fe00805
24 files changed
+47 -47

No files matched your search

+2 -2
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);
}