X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.cpp;h=cda1fd8fc7eaf85ac0169b2d4330f41eafa4a5c6;hb=8582c2ad5708a1972c85bea1cf8d81ad3ece4814;hp=bbd49bfc6c52483de95e8857bab6e9ca1b8d54b0;hpb=f00917808808161cc5fb01d0ac4da13ffffbffbb;p=quassel.git diff --git a/src/qtui/chatitem.cpp b/src/qtui/chatitem.cpp index bbd49bfc..cda1fd8f 100644 --- a/src/qtui/chatitem.cpp +++ b/src/qtui/chatitem.cpp @@ -49,7 +49,7 @@ ChatItem::ChatItem(const QRectF &boundingRect, ChatLine *parent) _boundingRect(boundingRect), _selectionMode(NoSelection), _selectionStart(-1), - _cachedLayout(0) + _cachedLayout(nullptr) { } @@ -141,7 +141,7 @@ QTextLayout *ChatItem::layout() const void ChatItem::clearCache() { delete _cachedLayout; - _cachedLayout = 0; + _cachedLayout = nullptr; } @@ -297,7 +297,7 @@ QVector ChatItem::additionalFormats() const using Label = UiStyle::MessageLabel; using Format = UiStyle::Format; - Label itemLabel = data(ChatLineModel::MsgLabelRole).value