move the pimpl initialization to the constructor
This commit is contained in:
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user