summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code
diff options
context:
space:
mode:
authorJoão Abecasis <joao.abecasis@nokia.com>2011-11-02 13:11:31 +0100
committerQt by Nokia <qt-info@nokia.com>2012-01-25 20:33:41 +0100
commitb59d8319806ff0ed2e340126fd110413301a833b (patch)
tree59a28000c215f2ca6aac67a2469094d9747fa58e /doc/src/snippets/code
parentf218213a42f4d1b1bbf291ee27730f83cfeed6ad (diff)
Introducing Q_ARRAY_LITERAL
This provides the same functionality as the specialized QStringLiteral and QByteArrayLiteral, but on top of QArrayData. The macro has two variations, variadic and simple. The variadic version depends on compiler support for (C99) variadic macros and enables static initialization of arrays of any POD data. Use of this macro is not recommended on code or applications that need to work in configurations where variadic macros are not supported. The simple version is more portable and is enough to support the use cases of QStringLiteral and QByteArrayLiteral, also providing a fallback that allocates and copies data when static initialization is not available. Change-Id: I7154a24dcae4bbbd7d5978653f620138467830c5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'doc/src/snippets/code')
0 files changed, 0 insertions, 0 deletions