mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Fixed typo in comment SFINA -> SFINAE
This commit is contained in:
@@ -1324,7 +1324,7 @@ void RimWellRftPlot::createEnsembleCurveSets()
|
|||||||
delete curveSet;
|
delete curveSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Then add curves for any ensembles we haven't already added
|
// Then add curve set for any ensembles we haven't already added
|
||||||
for ( RimSummaryCaseCollection* ensemble : rftEnsembles )
|
for ( RimSummaryCaseCollection* ensemble : rftEnsembles )
|
||||||
{
|
{
|
||||||
auto it = std::find_if( m_ensembleCurveSets.begin(),
|
auto it = std::find_if( m_ensembleCurveSets.begin(),
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ class PdmOptionItemInfo
|
|||||||
public:
|
public:
|
||||||
// Template pass-through for enum types, ensuring the T type gets cast to an int before storing in the QVariant
|
// Template pass-through for enum types, ensuring the T type gets cast to an int before storing in the QVariant
|
||||||
// Note the extra dummy parameter. This ensures compilation fails for non-enum types and these variants get removed
|
// Note the extra dummy parameter. This ensures compilation fails for non-enum types and these variants get removed
|
||||||
// due to SFINA (https://en.wikipedia.org/wiki/Substitution_failure_is_not_an_error)
|
// due to SFINAE (https://en.wikipedia.org/wiki/Substitution_failure_is_not_an_error)
|
||||||
template<typename T>
|
template<typename T>
|
||||||
PdmOptionItemInfo(const QString& anOptionUiText, T aValue, bool isReadOnly = false, const QIconProvider& anIcon = QIconProvider(), typename std::enable_if<std::is_enum<T>::value>::type* = 0)
|
PdmOptionItemInfo(const QString& anOptionUiText, T aValue, bool isReadOnly = false, const QIconProvider& anIcon = QIconProvider(), typename std::enable_if<std::is_enum<T>::value>::type* = 0)
|
||||||
: PdmOptionItemInfo(anOptionUiText, QVariant(static_cast<int>(aValue)), isReadOnly, anIcon)
|
: PdmOptionItemInfo(anOptionUiText, QVariant(static_cast<int>(aValue)), isReadOnly, anIcon)
|
||||||
|
|||||||
Reference in New Issue
Block a user