Initialize member variables

It's always good practice.
This commit is contained in:
Luís Pereira
2020-06-22 13:34:13 +01:00
committed by Chih-Hsuan Yen
parent f04032e450
commit 96fc2dbd43
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -90,7 +90,8 @@ FIXME: There is noticeable decrease in speed, also. Perhaps,
HistoryFile::HistoryFile()
: ion(-1),
length(0),
fileMap(nullptr)
fileMap(nullptr),
readWriteBalance(0)
{
if (tmpFile.open())
{
+1
View File
@@ -30,6 +30,7 @@ using namespace Konsole;
ScreenWindow::ScreenWindow(QObject* parent)
: QObject(parent)
, _screen(nullptr)
, _windowBuffer(nullptr)
, _windowBufferSize(0)
, _bufferNeedsUpdate(true)