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:
parent
7fd4aa1ce9
commit
9c458ec3ba
@ -1324,7 +1324,7 @@ void RimWellRftPlot::createEnsembleCurveSets()
|
||||
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 )
|
||||
{
|
||||
auto it = std::find_if( m_ensembleCurveSets.begin(),
|
||||
|
@ -114,7 +114,7 @@ class PdmOptionItemInfo
|
||||
public:
|
||||
// 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
|
||||
// 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>
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user