Use std::unique_ptr for LocalisationService

This commit is contained in:
Matt 2018-08-29 01:19:05 +02:00
parent 837c0a9e7f
commit 2ac6262293
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ namespace OpenRCT2
std::shared_ptr<IUiContext> const _uiContext;
// Services
std::shared_ptr<LocalisationService> _localisationService;
std::unique_ptr<LocalisationService> _localisationService;
std::unique_ptr<IObjectRepository> _objectRepository;
std::unique_ptr<IObjectManager> _objectManager;
std::unique_ptr<ITrackDesignRepository> _trackDesignRepository;
@ -128,7 +128,7 @@ namespace OpenRCT2
: _env(env)
, _audioContext(audioContext)
, _uiContext(uiContext)
, _localisationService(std::make_shared<LocalisationService>(env))
, _localisationService(std::make_unique<LocalisationService>(env))
{
Instance = this;
}