Skip to content

Commit

Permalink
qtermwidget: add missing initialization of member variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault authored and nyalldawson committed May 29, 2020
1 parent dec3b75 commit e535da3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions src/plugins/grass/qtermwidget/HistorySearch.h
Expand Up @@ -56,14 +56,14 @@ class HistorySearch : public QObject

EmulationPtr m_emulation;
QRegExp m_regExp;
bool m_forwards;
int m_startColumn;
int m_startLine;

int m_foundStartColumn;
int m_foundStartLine;
int m_foundEndColumn;
int m_foundEndLine;
bool m_forwards = false;
int m_startColumn = 0;
int m_startLine = 0;

int m_foundStartColumn = 0;
int m_foundStartLine = 0;
int m_foundEndColumn = 0;
int m_foundEndLine = 0;
};

#endif /* TASK_H */
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/grass/qtermwidget/kprocess.h
Expand Up @@ -362,10 +362,10 @@ class KProcessPrivate {

QString prog;
QStringList args;
KProcess::OutputChannelMode outputChannelMode;
KProcess::OutputChannelMode outputChannelMode = KProcess::SeparateChannels; // arbitrary value
QIODevice::OpenMode openMode;

KProcess *q_ptr;
KProcess *q_ptr = nullptr;
};
/* ------------------------------------------- */
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grass/qtermwidget/kptyprocess.h
Expand Up @@ -169,7 +169,7 @@ class KPtyProcessPrivate : public KProcessPrivate {
pty->logout();
}

KPtyDevice *pty;
KPtyDevice *pty = nullptr;
KPtyProcess::PtyChannels ptyChannels;
bool addUtmp : 1;
};
Expand Down

0 comments on commit e535da3

Please sign in to comment.