mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 01:41:42 -06:00
fixed: build against QT 6.8
This commit is contained in:
parent
bd3ef3f775
commit
6d4824b204
@ -209,7 +209,9 @@ bool RiaTextStringTools::isNumber( const QString& text, const QString& decimalPo
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
#if QT_VERSION < QT_VERSION_CHECK( 6, 8, 0 )
|
||||
std::strong_ordering operator<=>( const QString& lhs, const QString& rhs )
|
||||
{
|
||||
return lhs.compare( rhs ) <=> 0;
|
||||
}
|
||||
#endif
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include <QRegularExpression>
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
#include <QtGlobal>
|
||||
|
||||
#include <map>
|
||||
|
||||
@ -47,6 +48,7 @@ bool isNumber( const QString& text, const QString& decimalPoint );
|
||||
|
||||
} // namespace RiaTextStringTools
|
||||
|
||||
#if QT_VERSION < QT_VERSION_CHECK( 6, 8, 0 )
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
//
|
||||
// Add operator<=> for QString to global scope
|
||||
@ -60,3 +62,4 @@ bool isNumber( const QString& text, const QString& decimalPoint );
|
||||
//
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::strong_ordering operator<=>( const QString& lhs, const QString& rhs );
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user