Skip to content

Commit

Permalink
QLatin1StringView: put qstringfwd.h in control of Q_L1S_VIEW_IS_PRIMARY
Browse files Browse the repository at this point in the history
Less duplication, matches what we do for q_no_char8_t namespaces, too.

Amends 94addad.

Pick-to: 6.5
Change-Id: I5d98babcb66d1196d3aed31c33289a1b11212a3d
Reviewed-by: Ivan Solovev <[email protected]>
(cherry picked from commit 2d2ee56)
Reviewed-by: Qt Cherry-pick Bot <[email protected]>
(cherry picked from commit 1f0dc76)
  • Loading branch information
marcmutz authored and Qt Cherry-pick Bot committed Dec 14, 2024
1 parent bee793c commit 595a557
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/corelib/text/qlatin1stringview.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <QtCore/qcontainerfwd.h>
#include <QtCore/qnamespace.h>
#include <QtCore/qtversionchecks.h>
#include <QtCore/qstringfwd.h>
#include <QtCore/qstringview.h>

#if 0
Expand All @@ -24,8 +25,7 @@ QT_BEGIN_NAMESPACE

class QString;

#if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0) || defined(QT_BOOTSTRAPPED) || defined(Q_QDOC)
# define Q_L1S_VIEW_IS_PRIMARY
#ifdef Q_L1S_VIEW_IS_PRIMARY
class QLatin1StringView
#else
class QLatin1String
Expand Down
1 change: 1 addition & 0 deletions src/corelib/text/qstringfwd.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ QT_END_NO_CHAR8_T_NAMESPACE
class QByteArray;
class QByteArrayView;
#if QT_VERSION >= QT_VERSION_CHECK(7, 0, 0) || defined(QT_BOOTSTRAPPED) || defined(Q_QDOC)
# define Q_L1S_VIEW_IS_PRIMARY
class QLatin1StringView;
using QLatin1String = QLatin1StringView;
#else
Expand Down

0 comments on commit 595a557

Please sign in to comment.