diff --git a/src/corelib/text/qlocale_p.h b/src/corelib/text/qlocale_p.h index 2c36f9bdaf..45983e9cd5 100644 --- a/src/corelib/text/qlocale_p.h +++ b/src/corelib/text/qlocale_p.h @@ -32,6 +32,14 @@ QT_BEGIN_NAMESPACE +template struct QSimpleParsedNumber +{ + T result; + // When used < 0, -used is how much was used, but it was an error. + qsizetype used; + bool ok() const { return used > 0; } +}; + template struct QCharacterSetMatch { static constexpr int MaxRange = std::numeric_limits::digits; diff --git a/src/corelib/text/qlocale_tools_p.h b/src/corelib/text/qlocale_tools_p.h index df58c88963..9b02403ea4 100644 --- a/src/corelib/text/qlocale_tools_p.h +++ b/src/corelib/text/qlocale_tools_p.h @@ -26,14 +26,6 @@ enum StrayCharacterMode { WhitespacesAllowed }; -template struct QSimpleParsedNumber -{ - T result; - // When used < 0, -used is how much was used, but it was an error. - qsizetype used; - bool ok() const { return used > 0; } -}; - // API note: this function can't process a number with more than 2.1 billion digits [[nodiscard]] QSimpleParsedNumber qt_asciiToDouble(const char *num, qsizetype numLen,