mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 00:36:46 +00:00
remove inline and use enable_if_t
This commit is contained in:
parent
d8d4351962
commit
d8897c4509
1 changed files with 4 additions and 4 deletions
|
@ -61,10 +61,10 @@ namespace NifOsg
|
||||||
ValueInterpolator() = default;
|
ValueInterpolator() = default;
|
||||||
|
|
||||||
template<class T = MapT>
|
template<class T = MapT>
|
||||||
inline ValueInterpolator(typename std::enable_if<
|
ValueInterpolator(typename std::enable_if_t<
|
||||||
std::is_same<T, Nif::FloatKeyMap>::value,
|
std::is_same<T, Nif::FloatKeyMap>::value,
|
||||||
const Nif::NiFloatInterpolator
|
const Nif::NiFloatInterpolator
|
||||||
>::type * interpolator) : mDefaultVal(interpolator->defaultVal)
|
> * interpolator) : mDefaultVal(interpolator->defaultVal)
|
||||||
{
|
{
|
||||||
if (interpolator->data.empty())
|
if (interpolator->data.empty())
|
||||||
return;
|
return;
|
||||||
|
@ -77,10 +77,10 @@ namespace NifOsg
|
||||||
};
|
};
|
||||||
|
|
||||||
template<class T = MapT>
|
template<class T = MapT>
|
||||||
inline ValueInterpolator(typename std::enable_if<
|
ValueInterpolator(typename std::enable_if_t<
|
||||||
std::is_same<T, Nif::Vector3KeyMap>::value,
|
std::is_same<T, Nif::Vector3KeyMap>::value,
|
||||||
const Nif::NiPoint3Interpolator
|
const Nif::NiPoint3Interpolator
|
||||||
>::type * interpolator) : mDefaultVal(interpolator->defaultVal)
|
> * interpolator) : mDefaultVal(interpolator->defaultVal)
|
||||||
{
|
{
|
||||||
if (interpolator->data.empty())
|
if (interpolator->data.empty())
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue