summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/painting/qpen.h')
-rw-r--r--src/gui/painting/qpen.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qpen.h b/src/gui/painting/qpen.h
index 6ce50ae1d0..bfa1553c68 100644
--- a/src/gui/painting/qpen.h
+++ b/src/gui/painting/qpen.h
@@ -65,7 +65,7 @@ public:
QPen &operator=(const QPen &pen) Q_DECL_NOTHROW;
#ifdef Q_COMPILER_RVALUE_REFS
QPen(QPen &&other) Q_DECL_NOTHROW
- : d(other.d) { other.d = 0; }
+ : d(other.d) { other.d = Q_NULLPTR; }
QPen &operator=(QPen &&other) Q_DECL_NOTHROW
{ qSwap(d, other.d); return *this; }
#endif