modernize: Use nullptr
[quassel.git] / src / qtui / chatline.h
index a3fef26..ed2de36 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2012 by the Quassel Project                        *
+ *   Copyright (C) 2005-2018 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -15,7 +15,7 @@
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program; if not, write to the                         *
  *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
  ***************************************************************************/
 
 #ifndef CHATLINE_H_
@@ -34,7 +34,7 @@ public:
         const qreal &width,
         const qreal &timestampWidth, const qreal &senderWidth, const qreal &contentsWidth,
         const QPointF &senderPos, const QPointF &contentsPos,
-        QGraphicsItem *parent = 0);
+        QGraphicsItem *parent = nullptr);
 
     virtual ~ChatLine();
 
@@ -49,7 +49,7 @@ public:
 
     inline const QAbstractItemModel *model() const { return _model; }
     inline ChatScene *chatScene() const { return qobject_cast<ChatScene *>(scene()); }
-    inline ChatView *chatView() const { return chatScene() ? chatScene()->chatView() : 0; }
+    inline ChatView *chatView() const { return chatScene() ? chatScene()->chatView() : nullptr; }
 
     inline qreal width() const { return _width; }
     inline qreal height() const { return _height; }
@@ -60,7 +60,7 @@ public:
     inline ChatItem *senderItem() { return &_senderItem; }
     inline ContentsChatItem *contentsItem() { return &_contentsItem; }
 
-    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
+    virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr);
     enum { Type = ChatScene::ChatLineType };
     virtual inline int type() const { return Type; }