cmake: avoid de-duplication of user's CXXFLAGS
[quassel.git] / src / uisupport / abstractbuffercontainer.h
index d0d9c8b..3ffdba1 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
- *   Copyright (C) 2005-2018 by the Quassel Project                        *
+ *   Copyright (C) 2005-2022 by the Quassel Project                        *
  *   devel@quassel-irc.org                                                 *
  *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
@@ -34,18 +34,17 @@ class UISUPPORT_EXPORT AbstractBufferContainer : public AbstractItemView
     Q_OBJECT
 
 public:
-    AbstractBufferContainer(QWidget *parent);
-    ~AbstractBufferContainer() override;
+    AbstractBufferContainer(QWidget* parent);
 
     inline BufferId currentBuffer() const { return _currentBuffer; }
 
 signals:
     void currentChanged(BufferId);
-    void currentChanged(const QModelIndex &);
+    void currentChanged(const QModelIndex&);
 
 protected:
     //! Create an AbstractChatView for the given BufferId and add it to the UI if necessary
-    virtual AbstractChatView *createChatView(BufferId) = 0;
+    virtual AbstractChatViewcreateChatView(BufferId) = 0;
 
     //! Remove a chat view from the UI and delete it
     /** This method shall remove the view from the UI (for example, from a QStackedWidget) if appropriate.
@@ -60,8 +59,8 @@ protected:
     virtual inline bool autoMarkerLine() const { return true; }
 
 protected slots:
-    void currentChanged(const QModelIndex &current, const QModelIndex &previous) override;
-    void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end) override;
+    void currentChanged(const QModelIndex& current, const QModelIndex& previous) override;
+    void rowsAboutToBeRemoved(const QModelIndexparent, int start, int end) override;
 
     //! Show the given chat view
     /** This method is called when the given chat view should be displayed. Use this e.g. for
@@ -76,13 +75,12 @@ private slots:
 
 private:
     BufferId _currentBuffer;
-    QHash<BufferId, AbstractChatView *> _chatViews;
+    QHash<BufferId, AbstractChatView*> _chatViews;
 };
 
-
 class AbstractChatView
 {
 public:
-    virtual ~AbstractChatView() {};
+    virtual ~AbstractChatView() = default;
     virtual MsgId lastMsgId() const = 0;
 };