Commit 81dc5f37 authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Initialize members in-class

parent 17ef14cb
......@@ -16,7 +16,6 @@ namespace Konsole
{
SessionGroup::SessionGroup(QObject *parent)
: QObject(parent)
, _masterMode(0)
{
}
......
......@@ -80,7 +80,7 @@ private:
// maps sessions to their master status
QHash<Session *, bool> _sessions;
int _masterMode;
int _masterMode = 0;
};
} // namespace Konsole
......
......@@ -22,7 +22,6 @@ using Konsole::SessionListModel;
SessionListModel::SessionListModel(QObject *parent)
: QAbstractListModel(parent)
, _sessions(QList<Session *>())
{
}
......
......@@ -42,11 +42,6 @@
using namespace Konsole;
SessionManager::SessionManager()
: _sessions(QList<Session *>())
, _sessionProfiles(QHash<Session *, Profile::Ptr>())
, _sessionRuntimeProfiles(QHash<Session *, Profile::Ptr>())
, _restoreMapping(QHash<Session *, int>())
, _isClosingAllSessions(false)
{
ProfileManager *profileMananger = ProfileManager::instance();
connect(profileMananger, &Konsole::ProfileManager::profileChanged, this, &Konsole::SessionManager::profileChanged);
......
......@@ -125,7 +125,7 @@ private:
QHash<Session *, QExplicitlySharedDataPointer<Profile>> _sessionProfiles;
QHash<Session *, QExplicitlySharedDataPointer<Profile>> _sessionRuntimeProfiles;
QHash<Session *, int> _restoreMapping;
bool _isClosingAllSessions;
bool _isClosingAllSessions = false;
};
}
......
......@@ -11,7 +11,6 @@ namespace Konsole
{
SessionTask::SessionTask(QObject *parent)
: QObject(parent)
, _autoDelete(false)
{
}
......
......@@ -66,7 +66,7 @@ protected:
QList<QPointer<Session>> sessions() const;
private:
bool _autoDelete;
bool _autoDelete = false;
QList<QPointer<Session>> _sessions;
};
......
......@@ -21,10 +21,6 @@ namespace Konsole
{
TerminalColor::TerminalColor(QObject *parent)
: QObject(parent)
, m_opacity(1.0)
, m_blendColor(qRgba(0, 0, 0, 0xff))
, m_cursorColor(QColor())
, m_cursorTextColor(QColor())
{
setColorTable(ColorScheme::defaultTable);
}
......
......@@ -66,8 +66,8 @@ private Q_SLOTS:
void swapFGBGColors();
private:
qreal m_opacity;
QRgb m_blendColor;
qreal m_opacity = 1;
QRgb m_blendColor = qRgba(0, 0, 0, 0xff);
QColor m_cursorColor;
QColor m_cursorTextColor;
......
Supports Markdown
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