mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Display all data if multiple fractures crosses a cell
- add the operator<=> for QString - add operator<=> to fracture report item
This commit is contained in:
@@ -174,3 +174,11 @@ QStringList RiaTextStringTools::splitSkipEmptyParts( const QString& text, const
|
||||
return text.split( regExp, QString::SkipEmptyParts );
|
||||
#endif
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::strong_ordering operator<=>( const QString& lhs, const QString& rhs )
|
||||
{
|
||||
return lhs.compare( rhs ) <=> 0;
|
||||
}
|
||||
|
@@ -40,3 +40,17 @@ QStringList splitSkipEmptyParts( const QString& text, const QRegExp& regExp );
|
||||
QString replaceTemplateTextWithValues( const QString& templateText, const std::map<QString, QString>& valueMap );
|
||||
|
||||
} // namespace RiaTextStringTools
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
//
|
||||
// Add operator<=> for QString to global scope
|
||||
//
|
||||
// Example of error message when this operator is not defined:
|
||||
//
|
||||
// 'auto RicWellPathFractureReportItem::operator <=>(const RicWellPathFractureReportItem &) const'
|
||||
// : function was implicitly deleted because 'RicWellPathFractureReportItem' data member
|
||||
// 'RicWellPathFractureReportItem::m_wellPathNameForExport' of type 'QString' has no valid
|
||||
// 'operator<=>'
|
||||
//
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::strong_ordering operator<=>( const QString& lhs, const QString& rhs );
|
||||
|
Reference in New Issue
Block a user