modernize: Reformat ALL the source... again!
[quassel.git] / src / qtui / chatlinemodelitem.h
index 00d2f3e..be7ec8a 100644 (file)
 #pragma once
 
 #include "messagemodel.h"
-
 #include "uistyle.h"
 
 class ChatLineModelItem : public MessageModelItem
 {
 public:
-    ChatLineModelItem(const Message &);
+    ChatLineModelItem(const Message&);
 
     QVariant data(int column, int role) const override;
-    bool setData(int column, const QVariant &value, int role) override;
+    bool setData(int column, const QVariantvalue, int role) override;
 
-    inline const Message &message() const override { return _styledMsg; }
-    inline const QDateTime &timestamp() const override { return _styledMsg.timestamp(); }
-    inline const MsgId &msgId() const override { return _styledMsg.msgId(); }
-    inline const BufferId &bufferId() const override { return _styledMsg.bufferId(); }
+    inline const Messagemessage() const override { return _styledMsg; }
+    inline const QDateTimetimestamp() const override { return _styledMsg.timestamp(); }
+    inline const MsgIdmsgId() const override { return _styledMsg.msgId(); }
+    inline const BufferIdbufferId() const override { return _styledMsg.bufferId(); }
     inline void setBufferId(BufferId bufferId) override { _styledMsg.setBufferId(bufferId); }
     inline Message::Type msgType() const override { return _styledMsg.type(); }
     inline Message::Flags msgFlags() const override { return _styledMsg.flags(); }
@@ -43,7 +42,8 @@ public:
     virtual inline void invalidateWrapList() { _wrapList.clear(); }
 
     /// Used to store information about words to be used for wrapping
-    struct Word {
+    struct Word
+    {
         quint16 start;
         qreal endX;
         qreal width;
@@ -64,6 +64,6 @@ private:
     mutable WrapList _wrapList;
     UiStyle::StyledMessage _styledMsg;
 
-    static unsigned char *TextBoundaryFinderBuffer;
+    static unsigned charTextBoundaryFinderBuffer;
     static int TextBoundaryFinderBufferSize;
 };