summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qpen.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-01-08 14:45:11 +0100
committerMarc Mutz <marc.mutz@kdab.com>2015-01-10 08:43:09 +0100
commit2c2801860dde4d707af9ce291489bee1750955d1 (patch)
tree32862c9d582270b4a0b26dd873e2fa7c8a1121d3 /src/gui/painting/qpen.h
parent676cb678cc7826366429761d2b3e57a052c1d868 (diff)
QPen: mark copy/move/swap as nothrow
Change-Id: Ib13d60256d96253934e0627d4c3015248e002e3f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/painting/qpen.h')
-rw-r--r--src/gui/painting/qpen.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/painting/qpen.h b/src/gui/painting/qpen.h
index 30f55cd4ce..48b7379924 100644
--- a/src/gui/painting/qpen.h
+++ b/src/gui/painting/qpen.h
@@ -58,18 +58,18 @@ public:
QPen(const QColor &color);
QPen(const QBrush &brush, qreal width, Qt::PenStyle s = Qt::SolidLine,
Qt::PenCapStyle c = Qt::SquareCap, Qt::PenJoinStyle j = Qt::BevelJoin);
- QPen(const QPen &pen);
+ QPen(const QPen &pen) Q_DECL_NOTHROW;
~QPen();
- QPen &operator=(const QPen &pen);
+ QPen &operator=(const QPen &pen) Q_DECL_NOTHROW;
#ifdef Q_COMPILER_RVALUE_REFS
- inline QPen(QPen &&other)
+ QPen(QPen &&other) Q_DECL_NOTHROW
: d(other.d) { other.d = 0; }
- inline QPen &operator=(QPen &&other)
+ QPen &operator=(QPen &&other) Q_DECL_NOTHROW
{ qSwap(d, other.d); return *this; }
#endif
- inline void swap(QPen &other) { qSwap(d, other.d); }
+ void swap(QPen &other) Q_DECL_NOTHROW { qSwap(d, other.d); }
Qt::PenStyle style() const;
void setStyle(Qt::PenStyle);