Port towards C++11 nullptr

This commit is contained in:
Luís Pereira
2019-04-10 18:13:08 +01:00
committed by Alf Gaida
parent 1e634114a3
commit b8906f6b0c
27 changed files with 91 additions and 91 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ using namespace Konsole;
ScreenWindow::ScreenWindow(QObject* parent)
: QObject(parent)
, _windowBuffer(0)
, _windowBuffer(nullptr)
, _windowBufferSize(0)
, _bufferNeedsUpdate(true)
, _windowLines(1)
@@ -59,7 +59,7 @@ Character* ScreenWindow::getImage()
{
// reallocate internal buffer if the window size has changed
int size = windowLines() * windowColumns();
if (_windowBuffer == 0 || _windowBufferSize != size)
if (_windowBuffer == nullptr || _windowBufferSize != size)
{
delete[] _windowBuffer;
_windowBufferSize = size;