mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use std::unique_ptr for LocalisationService
This commit is contained in:
parent
837c0a9e7f
commit
2ac6262293
|
@ -83,7 +83,7 @@ namespace OpenRCT2
|
||||||
std::shared_ptr<IUiContext> const _uiContext;
|
std::shared_ptr<IUiContext> const _uiContext;
|
||||||
|
|
||||||
// Services
|
// Services
|
||||||
std::shared_ptr<LocalisationService> _localisationService;
|
std::unique_ptr<LocalisationService> _localisationService;
|
||||||
std::unique_ptr<IObjectRepository> _objectRepository;
|
std::unique_ptr<IObjectRepository> _objectRepository;
|
||||||
std::unique_ptr<IObjectManager> _objectManager;
|
std::unique_ptr<IObjectManager> _objectManager;
|
||||||
std::unique_ptr<ITrackDesignRepository> _trackDesignRepository;
|
std::unique_ptr<ITrackDesignRepository> _trackDesignRepository;
|
||||||
|
@ -128,7 +128,7 @@ namespace OpenRCT2
|
||||||
: _env(env)
|
: _env(env)
|
||||||
, _audioContext(audioContext)
|
, _audioContext(audioContext)
|
||||||
, _uiContext(uiContext)
|
, _uiContext(uiContext)
|
||||||
, _localisationService(std::make_shared<LocalisationService>(env))
|
, _localisationService(std::make_unique<LocalisationService>(env))
|
||||||
{
|
{
|
||||||
Instance = this;
|
Instance = this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue