move the pimpl initialization to the constructor

This commit is contained in:
Mamadou Babaei
2023-03-28 10:34:50 +02:00
parent 220ddf28a6
commit ae268ebde7
@@ -82,6 +82,7 @@ void USGSettings::FImplDeleter::operator()(const FImpl* P) const
}
USGSettings::USGSettings()
: Pimpl(TUniquePtr<FImpl, FImplDeleter>(new FImpl{this}, PimplDeleter))
{
HardwareOffset = ESGPositionalTrackingHardware::None;
HardwareLocationOffset = FVector::ZeroVector;
@@ -99,8 +100,6 @@ void USGSettings::Initialize(FSubsystemCollectionBase& Collection)
Super::Initialize(Collection);
Pimpl = TUniquePtr<FImpl, FImplDeleter>(new FImpl{this}, PimplDeleter);
SGLOG("Initializing the SenseGlove settings singleton with the engine lifetime...");
SGLOG("The SenseGlove settings singleton has been successfully initialized with the engine lifetime!");