Skip to content

Commit

Permalink
fixed: build against QT 6.8
Browse files Browse the repository at this point in the history
  • Loading branch information
akva2 authored and magnesj committed Dec 3, 2024
1 parent bd3ef3f commit 6d4824b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ApplicationLibCode/Application/Tools/RiaTextStringTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions ApplicationLibCode/Application/Tools/RiaTextStringTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <QRegularExpression>
#include <QString>
#include <QStringList>
#include <QtGlobal>

#include <map>

Expand All @@ -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
Expand All @@ -60,3 +62,4 @@ bool isNumber( const QString& text, const QString& decimalPoint );
//
//--------------------------------------------------------------------------------------------------
std::strong_ordering operator<=>( const QString& lhs, const QString& rhs );
#endif

0 comments on commit 6d4824b

Please sign in to comment.