simplify the move constructors / move assignment operators' noexcept ifdefs
This commit is contained in:
@@ -142,11 +142,11 @@ void FSGHandProfileImpl::ResetCalibration(const bool bOnDisk)
|
||||
|
||||
FSGHandProfileImpl::FSGHandProfileImpl()
|
||||
:
|
||||
#if ENGINE_MAJOR_VERSION == 5 || ( ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION > 24 && SG_CPP17 )
|
||||
#if SG_CPP17
|
||||
Pimpl(TUniquePtr<FImpl, FImplDeleter>(new FImpl{this}, PimplDeleter))
|
||||
#else
|
||||
Pimpl(TUniquePtr<FImpl, FImplDeleter>(new FImpl{this}))
|
||||
#endif /* ENGINE_MAJOR_VERSION == 5 || ( ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION > 24 && SG_CPP17 ) */
|
||||
#endif /* SG_CPP17 */
|
||||
{
|
||||
}
|
||||
|
||||
@@ -154,11 +154,11 @@ FSGHandProfileImpl::FSGHandProfileImpl(const bool bRightHanded,
|
||||
const FSGSenseGloveHandProfileImpl& SenseGloveHandProfile,
|
||||
const FSGNovaGloveHandProfileImpl& NovaGloveHandProfile)
|
||||
:
|
||||
#if ENGINE_MAJOR_VERSION == 5 || ( ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION > 24 && SG_CPP17 )
|
||||
#if SG_CPP17
|
||||
Pimpl(TUniquePtr<FImpl, FImplDeleter>(new FImpl{this}, PimplDeleter))
|
||||
#else
|
||||
Pimpl(TUniquePtr<FImpl, FImplDeleter>(new FImpl{this}))
|
||||
#endif /* ENGINE_MAJOR_VERSION == 5 || ( ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION > 24 && SG_CPP17 ) */
|
||||
#endif /* SG_CPP17 */
|
||||
{
|
||||
Pimpl->HandProfile = FHandProfileType(
|
||||
bRightHanded, SenseGloveHandProfile.ToSenseGloveHandProfile(), NovaGloveHandProfile.ToNovaGloveHandProfile());
|
||||
@@ -166,30 +166,30 @@ FSGHandProfileImpl::FSGHandProfileImpl(const bool bRightHanded,
|
||||
|
||||
FSGHandProfileImpl::FSGHandProfileImpl(const FHandProfileType& SenseGloveHandProfile)
|
||||
:
|
||||
#if ENGINE_MAJOR_VERSION == 5 || ( ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION > 24 && SG_CPP17 )
|
||||
#if SG_CPP17
|
||||
Pimpl(TUniquePtr<FImpl, FImplDeleter>(new FImpl{this}, PimplDeleter))
|
||||
#else
|
||||
Pimpl(TUniquePtr<FImpl, FImplDeleter>(new FImpl{this}))
|
||||
#endif /* ENGINE_MAJOR_VERSION == 5 || ( ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION > 24 && SG_CPP17 ) */
|
||||
#endif /* SG_CPP17 */
|
||||
{
|
||||
Pimpl->HandProfile = SenseGloveHandProfile;
|
||||
}
|
||||
|
||||
FSGHandProfileImpl::FSGHandProfileImpl(const FSGHandProfileImpl& Rhs)
|
||||
:
|
||||
#if ENGINE_MAJOR_VERSION == 5 || ( ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION > 24 && SG_CPP17 )
|
||||
#if SG_CPP17
|
||||
Pimpl(TUniquePtr<FImpl, FImplDeleter>(new FImpl{*Rhs.Pimpl}, PimplDeleter))
|
||||
#else
|
||||
Pimpl(TUniquePtr<FImpl, FImplDeleter>(new FImpl{*Rhs.Pimpl}))
|
||||
#endif /* ENGINE_MAJOR_VERSION == 5 || ( ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION > 24 && SG_CPP17 ) */
|
||||
#endif /* SG_CPP17 */
|
||||
{
|
||||
Pimpl->Owner = this;
|
||||
}
|
||||
|
||||
FSGHandProfileImpl::FSGHandProfileImpl(FSGHandProfileImpl&& Rhs)
|
||||
#if ENGINE_MAJOR_VERSION == 5 || ( ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION > 24 && SG_CPP17 )
|
||||
#if SG_CPP17
|
||||
noexcept
|
||||
#endif /* ENGINE_MAJOR_VERSION == 5 || ( ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION > 24 && SG_CPP17 ) */
|
||||
#endif /* SG_CPP17 */
|
||||
= default;
|
||||
|
||||
FSGHandProfileImpl::~FSGHandProfileImpl() = default;
|
||||
@@ -202,9 +202,9 @@ FSGHandProfileImpl& FSGHandProfileImpl::operator=(const FSGHandProfileImpl& Rhs)
|
||||
}
|
||||
|
||||
FSGHandProfileImpl& FSGHandProfileImpl::operator=(FSGHandProfileImpl&& Rhs)
|
||||
#if ENGINE_MAJOR_VERSION == 5 || ( ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION > 24 && SG_CPP17 )
|
||||
#if SG_CPP17
|
||||
noexcept
|
||||
#endif /* ENGINE_MAJOR_VERSION == 5 || ( ENGINE_MAJOR_VERSION == 4 && ENGINE_MINOR_VERSION > 24 && SG_CPP17 ) */
|
||||
#endif /* SG_CPP17 */
|
||||
= default;
|
||||
|
||||
const FSGHandProfileImpl::FHandProfileType& FSGHandProfileImpl::ToHandProfile(
|
||||
|
||||
Reference in New Issue
Block a user