QFontMetricsF: add noexcept

Change-Id: I0b32ff72f22c4014441a86c135927e52ddc999cd
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Giuseppe D'Angelo 2019-05-13 21:58:17 +02:00 committed by Marc Mutz
parent 68eea0196e
commit 83971776c7

View File

@ -170,10 +170,10 @@ public:
QFontMetricsF &operator=(const QFontMetricsF &);
QFontMetricsF &operator=(const QFontMetrics &);
inline QFontMetricsF &operator=(QFontMetricsF &&other)
inline QFontMetricsF &operator=(QFontMetricsF &&other) noexcept
{ qSwap(d, other.d); return *this; }
void swap(QFontMetricsF &other) { qSwap(d, other.d); }
void swap(QFontMetricsF &other) noexcept { qSwap(d, other.d); }
qreal ascent() const;
qreal capHeight() const;