modulecppexports.h.in: replace non-ASCII with ASCII characters
Qt 6 requires /utf-8 for user-projects by default, but allows users to opt-out (cf.0cdcbb40a1
), so we shouldn't use non-ASCII characters in public headers. Amends97f643faee
. Fixes: QTBUG-115229 Pick-to: 6.6 6.5 Change-Id: Ieb93ea9f3526e7bcc2e5aeffb5e69c68d10db792 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
631cb589bf
commit
7a1625abf1
@ -19,22 +19,22 @@
|
||||
#endif
|
||||
|
||||
#if !defined(QT_BUILD_@module_define_infix@_LIB) && !defined(QT_STATIC)
|
||||
/* outside library → inline decl + defi */
|
||||
/* outside library -> inline decl + defi */
|
||||
/* static builds treat everything as part of the library, so they never inline */
|
||||
# define QT_@module_define_infix@_INLINE_SINCE(major, minor) inline
|
||||
# define QT_@module_define_infix@_INLINE_IMPL_SINCE(major, minor) 1
|
||||
#elif defined(QT_@module_define_infix@_BUILD_REMOVED_API)
|
||||
/* inside library, inside removed_api.cpp:
|
||||
* keep deprecated API → non-inline decl;
|
||||
* remove deprecated API → inline decl;
|
||||
* keep deprecated API -> non-inline decl;
|
||||
* remove deprecated API -> inline decl;
|
||||
* definition is always available */
|
||||
# define QT_@module_define_infix@_INLINE_SINCE(major, minor) \
|
||||
QT_IF_DEPRECATED_SINCE(major, minor, inline, /* not inline */)
|
||||
# define QT_@module_define_infix@_INLINE_IMPL_SINCE(major, minor) 1
|
||||
#else
|
||||
/* inside library, outside removed_api.cpp:
|
||||
* keep deprecated API → non-inline decl, no defi;
|
||||
* remove deprecated API → inline decl, defi */
|
||||
* keep deprecated API -> non-inline decl, no defi;
|
||||
* remove deprecated API -> inline decl, defi */
|
||||
# define QT_@module_define_infix@_INLINE_SINCE(major, minor) \
|
||||
QT_IF_DEPRECATED_SINCE(major, minor, inline, /* not inline */)
|
||||
# define QT_@module_define_infix@_INLINE_IMPL_SINCE(major, minor) \
|
||||
|
Loading…
Reference in New Issue
Block a user