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 committed Dec 2, 2024
1 parent bd3ef3f commit f1f2dde
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 @@ -18,6 +18,7 @@

#pragma once

#include <QtGlobal>
#include <QRegularExpression>
#include <QString>
#include <QStringList>
Expand Down Expand Up @@ -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 f1f2dde

Please sign in to comment.