Commit 7f35a5af authored by Kurt Hindenburg's avatar Kurt Hindenburg

initialize members in the initialization list

parent fdc3c1b6
......@@ -170,6 +170,8 @@ ColorScheme::ColorScheme() :
}
ColorScheme::ColorScheme(const ColorScheme &other) :
_description(QString()),
_name(QString()),
_table(nullptr),
_randomTable(nullptr),
_opacity(other._opacity),
......
......@@ -58,6 +58,7 @@ const int FAINT_COLOR_COLUMN = 3; // column 2 : faint colors
ColorSchemeEditor::ColorSchemeEditor(QWidget *aParent) :
QDialog(aParent),
_isNewScheme(false),
_ui(nullptr),
_colors(nullptr)
{
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel|QDialogButtonBox::Apply);
......
......@@ -35,6 +35,9 @@ using namespace Konsole;
CopyInputDialog::CopyInputDialog(QWidget *parent) :
QDialog(parent)
, _ui(nullptr)
, _model(nullptr)
, _masterSession(nullptr)
{
setWindowTitle(i18n("Copy Input"));
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel);
......@@ -145,6 +148,8 @@ void CopyInputDialog::setRowChecked(int row, bool checked)
CheckableSessionModel::CheckableSessionModel(QObject *parent) :
SessionListModel(parent),
_checkedSessions(QSet<Session *>()),
_fixedSessions(QSet<Session *>()),
_checkColumn(0)
{
}
......
......@@ -63,8 +63,15 @@ using namespace Konsole;
EditProfileDialog::EditProfileDialog(QWidget *aParent) :
QDialog(aParent),
_ui(nullptr),
_tempProfile(nullptr),
_profile(nullptr),
_pageNeedsUpdate(QVector<bool>()),
_previewedProperties(QHash<int, QVariant>()),
_delayedPreviewProperties(QHash<int, QVariant>()),
_delayedPreviewTimer(new QTimer(this)),
_colorDialog(nullptr)
_colorDialog(nullptr),
mButtonBox(nullptr)
{
setWindowTitle(i18n("Edit Profile"));
mButtonBox = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel|QDialogButtonBox::Apply);
......
......@@ -34,12 +34,15 @@
using namespace Konsole;
Emulation::Emulation() :
_windows(QList<ScreenWindow *>()),
_currentScreen(nullptr),
_codec(nullptr),
_decoder(nullptr),
_keyTranslator(nullptr),
_usesMouse(false),
_bracketedPasteMode(false),
_bulkTimer1(new QTimer(this)),
_bulkTimer2(new QTimer(this)),
_imageSizeInitialized(false)
{
// create screens with a default size
......
......@@ -613,6 +613,8 @@ static QString createFileRegex(const QStringList &patterns, const QString &fileP
FileFilter::FileFilter(Session *session) :
_session(session)
, _dirPath(QString())
, _currentFiles(QSet<QString>())
{
QStringList patterns;
QMimeDatabase mimeDatabase;
......
......@@ -35,8 +35,10 @@ using Konsole::ProfileList;
ProfileList::ProfileList(bool addShortcuts , QObject* parent)
: QObject(parent)
, _group(nullptr)
, _addShortcuts(addShortcuts)
, _emptyListAction(nullptr)
, _registeredWidgets(QSet<QWidget *>())
{
// construct the list of favorite profiles
_group = new QActionGroup(this);
......
......@@ -71,6 +71,8 @@ static void sortByNameProfileList(QList<Profile::Ptr>& list)
ProfileManager::ProfileManager()
: _profiles(QSet<Profile::Ptr>())
, _favorites(QSet<Profile::Ptr>())
, _defaultProfile(nullptr)
, _fallbackProfile(nullptr)
, _loadedAllProfiles(false)
, _loadedFavorites(false)
, _shortcuts(QMap<QKeySequence, ShortcutData>())
......
......@@ -460,7 +460,9 @@ bool FavoriteItemDelegate::editorEvent(QEvent* aEvent, QAbstractItemModel*,
return true;
}
ShortcutItemDelegate::ShortcutItemDelegate(QObject* aParent)
: QStyledItemDelegate(aParent)
: QStyledItemDelegate(aParent),
_modifiedEditors(QSet<QWidget *>()),
_itemsBeingEdited(QSet<QModelIndex>())
{
}
void ShortcutItemDelegate::editorModified(const QKeySequence& keys)
......
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