diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2016-04-24 00:07:28 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2016-04-25 05:11:12 +0000 |
commit | 0909a94af2d274840697e4ae25cc14b3f5eb6197 (patch) | |
tree | 5e239e4521627d5e6cdf3f6edfe6bb0f85f3618a /src/corelib/tools/qunicodetools_p.h | |
parent | 4579d966af2e5d4ba229f13312eeb2f921406038 (diff) |
QtCore: mark more types as primitive/movable
These types are held in QVarLengthArrays, so benefit
from being trivially relocatable. They are also part
of the private API, so there's no BC issues with
potential uses of these types in QList.
Change-Id: I8adc0c801885f8fffa05eb1f173d7e4bb085ba7b
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/tools/qunicodetools_p.h')
-rw-r--r-- | src/corelib/tools/qunicodetools_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/tools/qunicodetools_p.h b/src/corelib/tools/qunicodetools_p.h index 1103f28452..5cde188656 100644 --- a/src/corelib/tools/qunicodetools_p.h +++ b/src/corelib/tools/qunicodetools_p.h @@ -77,6 +77,10 @@ struct ScriptItem int script; }; +} // namespace QUnicodeTools +Q_DECLARE_TYPEINFO(QUnicodeTools::ScriptItem, Q_PRIMITIVE_TYPE); +namespace QUnicodeTools { + enum CharAttributeOption { GraphemeBreaks = 0x01, WordBreaks = 0x02, |