qt5base-lts/src
Thiago Macieira 795a54ff96 QDataStream: add operator<< and >> for std::nullptr_t
std::nullptr_t is nullary: it accepts only one value, nullptr. So we
don't need to read or write anything. This commit simply adds the two
operators that allow generic code to operate on std::nullptr_t if
required.

This commit also adds the actual use to QMetaType::load/save, even
though there's no change in behavior.

[ChangeLog][QtCore][QDataStream] Added operator<< and operator>>
overloads that take std::nullptr_t, to facilitate generic code.

Change-Id: Iae839f6a131a4f0784bffffd14aa37e7f62d2740
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2017-04-07 17:41:06 +00:00
..
3rdparty Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-27 10:42:08 +02:00
android Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-28 12:18:11 +02:00
angle ANGLE: remove dead MinGW code from common.pri 2017-03-28 06:29:43 +00:00
concurrent Merge remote-tracking branch 'origin/5.8' into 5.9 2017-04-06 14:16:31 +02:00
corelib QDataStream: add operator<< and >> for std::nullptr_t 2017-04-07 17:41:06 +00:00
dbus Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-13 15:55:44 +01:00
gui Merge remote-tracking branch 'origin/5.8' into 5.9 2017-04-06 14:16:31 +02:00
network Fix GCC warning about dereferencing type-punned pointers 2017-04-06 04:14:58 +00:00
opengl Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-13 15:55:44 +01:00
openglextensions Also release winmain, qopenglextensions under commercial licenses 2016-11-18 16:19:56 +00:00
platformheaders XCB: Replace LGPL21 with LGPL license header 2017-02-28 15:34:58 +00:00
platformsupport Merge remote-tracking branch 'origin/5.8' into 5.9 2017-04-06 14:16:31 +02:00
plugins Merge "Merge remote-tracking branch 'origin/5.8' into 5.9" into refs/staging/5.9 2017-04-06 14:35:54 +00:00
printsupport Prefer rvalue version of toLocal8Bit() 2017-03-30 20:30:19 +00:00
sql Merge remote-tracking branch 'origin/5.8' into 5.9 2017-04-06 14:16:31 +02:00
testlib Prefer rvalue versions of toLatin() and toUtf8() 2017-03-30 20:31:59 +00:00
tools Prefer rvalue versions of toLatin() and toUtf8() 2017-03-30 20:31:59 +00:00
widgets Merge remote-tracking branch 'origin/5.8' into 5.9 2017-04-06 14:16:31 +02:00
winmain Merge remote-tracking branch 'origin/5.8' into 5.9 2017-02-08 15:49:18 +01:00
xml Prefer rvalue versions of toLatin() and toUtf8() 2017-03-30 20:31:59 +00:00
src.pro Merge remote-tracking branch 'origin/5.8' into 5.9 2017-03-27 10:42:08 +02:00