X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatitem.cpp;h=cda1fd8fc7eaf85ac0169b2d4330f41eafa4a5c6;hb=a0e333e994dce2d949a84930293382020e724596;hp=10b7d78068dba35629e1cca8ad97b9e18a0ca268;hpb=77f32bd74c6140060007ace39f70f2bbd8aeebe9;p=quassel.git diff --git a/src/qtui/chatitem.cpp b/src/qtui/chatitem.cpp index 10b7d780..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