X-Git-Url: https://vaikene.ee/gitweb/pswgen09.html?a=blobdiff_plain;ds=inline;f=src%2Fplugins%2FLogView%2Flogview.h;h=228a6895623b62e2a6791e3759abee7ca0b41092;hb=4c0329c5c2690bde28212c89029015a5da4c7e34;hp=dd768585587f7e7cf5e8a19ffc6ea5f34409f4f7;hpb=7a8ba1ead6dbe609ecc6eeae5ddde607f0b5bd5f;p=evaf
diff --git a/src/plugins/LogView/logview.h b/src/plugins/LogView/logview.h
index dd76858..228a689 100644
--- a/src/plugins/LogView/logview.h
+++ b/src/plugins/LogView/logview.h
@@ -3,7 +3,7 @@
* @brief Implementation of the LogView module
* @author Enar Vaikene
*
- * Copyright (c) 2011 Enar Vaikene
+ * Copyright (c) 2011-2019 Enar Vaikene
*
* This file is part of the eVaf C++ cross-platform application development framework.
*
@@ -79,11 +79,11 @@ public:
QString where;
};
- Model(QObject * parent = 0);
+ Model(QObject * parent = nullptr);
Message const & messageAt(int idx) const { return mData.at(idx); }
- virtual int rowCount(QModelIndex const & parent = QModelIndex()) const { return mData.size(); }
+ virtual int rowCount(QModelIndex const & = QModelIndex()) const { return mData.size(); }
virtual QVariant data(QModelIndex const & index, int role = Qt::DisplayRole) const;
@@ -120,7 +120,7 @@ private: // Members
private: // Methods
- inline char const * const severityText(Common::iLogger::Severity s) const;
+ inline char const * severityText(Common::iLogger::Severity s) const;
};
@@ -135,7 +135,7 @@ class Widget : public QWidget
public:
- Widget(QString const & source, QWidget * parent = 0);
+ Widget(QString const & source, QWidget * parent = nullptr);
QString const & source() const { return mSource; }
@@ -178,7 +178,7 @@ class Window : public Gui::Panel
public:
- Window(QString const & args, QWidget * parent = 0, Qt::WindowFlags flags = 0);
+ Window(QString const & args, QWidget * parent = nullptr, Qt::WindowFlags flags = Qt::WindowFlags());
virtual ~Window();
@@ -226,7 +226,7 @@ public:
virtual void done();
- virtual bool isReady() const { return wWindow != 0; }
+ virtual bool isReady() const { return wWindow != nullptr; }
private: // Members