modernize: Use braced-init list when returning types
[quassel.git] / src / qtui / chatline.h
index 1fdedd5..e5ee5f7 100644 (file)
@@ -38,7 +38,7 @@ public:
 
     ~ChatLine() override;
 
-    inline QRectF boundingRect() const override { return QRectF(0, 0, _width, _height); }
+    inline QRectF boundingRect() const override { return {0, 0, _width, _height}; }
 
     inline QModelIndex index() const { return model()->index(row(), 0); }
     inline MsgId msgId() const { return index().data(MessageModel::MsgIdRole).value<MsgId>(); }