Don't protect qstringbuilder.h indirect includes
It's a) not needed, because qstringbuilder.h simply just defines op% and not op+ when these defines are not set and b) surprising for users that they have to include <qstringbuilder.h> if they want to use op% without also setting one of these defines. Finally, it just throws readers of the code off the track for no good reason. So, drop the external guards for qtringbuilder.h in qstring.h and qstringconverter.h. Task-number: QTBUG-114208 Change-Id: I00b3e405d905d319437c32a7253b39de1625d096 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ivan Solovev <ivan.solovev@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Dennis Oberst <dennis.oberst@qt.io> (cherry picked from commit 15ff5bafa0cdb21134c6c4660206c16d26960da8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
326240ef79
commit
cbaecba8dc
@ -1493,9 +1493,7 @@ inline QString operator"" _qs(const char16_t *str, size_t size) noexcept
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#if defined(QT_USE_FAST_OPERATOR_PLUS) || defined(QT_USE_QSTRINGBUILDER)
|
||||
#include <QtCore/qstringbuilder.h>
|
||||
#endif
|
||||
|
||||
#ifdef Q_L1S_VIEW_IS_PRIMARY
|
||||
# undef Q_L1S_VIEW_IS_PRIMARY
|
||||
|
@ -13,9 +13,7 @@
|
||||
|
||||
#include <QtCore/qstringconverter_base.h>
|
||||
#include <QtCore/qstring.h>
|
||||
#if defined(QT_USE_FAST_OPERATOR_PLUS) || defined(QT_USE_QSTRINGBUILDER)
|
||||
#include <QtCore/qstringbuilder.h>
|
||||
#endif
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user