Commit db4c5134 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Fix zero as null pointer constant issues

s/0/nullptr/
parent 8ae6595c
......@@ -56,7 +56,7 @@ class KONSOLEPRIVATE_EXPORT ColorSchemeEditor : public QDialog
public:
/** Constructs a new color scheme editor with the specified parent. */
explicit ColorSchemeEditor(QWidget *parent = 0);
explicit ColorSchemeEditor(QWidget *parent = nullptr);
~ColorSchemeEditor() Q_DECL_OVERRIDE;
/** Initializes the dialog with the properties of the specified color scheme. */
......
......@@ -206,9 +206,9 @@ class CompactHistoryBlock
public:
CompactHistoryBlock() :
_blockLength(4096 * 64), // 256kb
_head(static_cast<quint8 *>(mmap(0, _blockLength, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0))),
_tail(0),
_blockStart(0),
_head(static_cast<quint8 *>(mmap(nullptr, _blockLength, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0))),
_tail(nullptr),
_blockStart(nullptr),
_allocCount(0)
{
Q_ASSERT(_head != MAP_FAILED);
......
......@@ -62,7 +62,7 @@ public:
* to notify the window when the associated screen has changed and synchronize selection updates
* between all views on a session.
*/
explicit ScreenWindow(Screen *screen, QObject *parent = 0);
explicit ScreenWindow(Screen *screen, QObject *parent = nullptr);
~ScreenWindow() Q_DECL_OVERRIDE;
/** Sets the screen which this window looks onto */
......
......@@ -259,7 +259,7 @@ public:
* implementation returns 0 (no extra features) */
virtual Features supportedFeatures() const
{
return 0;
return nullptr;
}
/** Sets the menu to be shown when the new view button is clicked.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment