projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Use auto where the type is clear from context
[quassel.git]
/
src
/
qtui
/
chatitem.cpp
diff --git
a/src/qtui/chatitem.cpp
b/src/qtui/chatitem.cpp
index
b88ac27
..
cda1fd8
100644
(file)
--- a/
src/qtui/chatitem.cpp
+++ b/
src/qtui/chatitem.cpp
@@
-297,7
+297,7
@@
QVector<QTextLayout::FormatRange> ChatItem::additionalFormats() const
using Label = UiStyle::MessageLabel;
using Format = UiStyle::Format;
using Label = UiStyle::MessageLabel;
using Format = UiStyle::Format;
-
Label
itemLabel = data(ChatLineModel::MsgLabelRole).value<Label>();
+
auto
itemLabel = data(ChatLineModel::MsgLabelRole).value<Label>();
const auto &fmtList = formatList();
struct LabelFormat {
const auto &fmtList = formatList();
struct LabelFormat {
@@
-660,7
+660,7
@@
void ContentsChatItem::clearCache()
ContentsChatItemPrivate *ContentsChatItem::privateData() const
{
if (!_data) {
ContentsChatItemPrivate *ContentsChatItem::privateData() const
{
if (!_data) {
-
ContentsChatItem
*that = const_cast<ContentsChatItem *>(this);
+
auto
*that = const_cast<ContentsChatItem *>(this);
that->_data = new ContentsChatItemPrivate(ClickableList::fromString(data(ChatLineModel::DisplayRole).toString()), that);
}
return _data;
that->_data = new ContentsChatItemPrivate(ClickableList::fromString(data(ChatLineModel::DisplayRole).toString()), that);
}
return _data;