Commit 7a8ffbbb authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Clean up code

parent 6288552a
Pipeline #32377 failed with stage
in 60 minutes and 26 seconds
......@@ -7,7 +7,6 @@
#include "viewerpluginexternalscriptinfo.h"
ViewerPluginExternalScriptInfo::ViewerPluginExternalScriptInfo()
: mIsReadOnly(false)
{
}
......
......@@ -44,7 +44,7 @@ private:
QString mDescription;
QString mIcon;
QString mFileName;
bool mIsReadOnly;
bool mIsReadOnly = false;
};
Q_DECLARE_TYPEINFO(ViewerPluginExternalScriptInfo, Q_MOVABLE_TYPE);
Q_DECLARE_METATYPE(ViewerPluginExternalScriptInfo)
......
......@@ -18,9 +18,6 @@
AdblockInterceptorInterface::AdblockInterceptorInterface(QObject *parent)
: WebEngineViewer::NetworkPluginUrlInterceptorInterface(parent)
, mShowBlockableItems(nullptr)
, mBlockImage(nullptr)
, mWebEngineView(nullptr)
{
mAdblockManager = new AdBlock::AdblockManager(this);
}
......
......@@ -11,7 +11,6 @@
SelectImapFolderTreeView::SelectImapFolderTreeView(QWidget *parent)
: QTreeView(parent)
, mStatus(InProgress)
{
}
......
......@@ -29,7 +29,7 @@ protected:
private:
void generalPaletteChanged();
QColor mTextColor;
LoadingStatus mStatus;
LoadingStatus mStatus = InProgress;
};
#endif // SELECTIMAPFOLDERTREEVIEW_H
......@@ -10,7 +10,6 @@
//#define COMPLETION_LINE_EDIT 1
SelectImapLineEdit::SelectImapLineEdit(QWidget *parent)
: QLineEdit(parent)
, mCompleter(nullptr)
{
setClearButtonEnabled(true);
}
......
......@@ -18,7 +18,6 @@ SelectImapLineEditCompleterModel::SelectImapLineEditCompleterModel(const KSieveU
mFlatProxy->setAncestorSeparator(QStringLiteral("/"));
bool modelIsInitalized = false;
mFlatProxy->setSourceModel(SelectImapFolderModel::self()->folderModel(account, modelIsInitalized));
//TODO
}
SelectImapLineEditCompleterModel::~SelectImapLineEditCompleterModel()
......
......@@ -15,7 +15,6 @@
SelectImapLoadFoldersJob::SelectImapLoadFoldersJob(QStandardItemModel *model, QObject *parent)
: QObject(parent)
, mSession(nullptr)
, mModel(model)
{
}
......
......@@ -44,7 +44,7 @@ private:
KSieveUi::SieveImapAccountSettings mSieveImapAccount;
QMap<QString, QStandardItem *> mItemsMap;
KIMAP::Session *mSession = nullptr;
QStandardItemModel *mModel = nullptr;
QStandardItemModel *const mModel;
};
#endif // SELECTIMAPLOADFOLDERSJOB_H
......@@ -20,18 +20,12 @@
K_PLUGIN_CLASS_WITH_JSON(RegexpEditorLineEdit, "regexepeditorlineedit.json")
struct InfoRegExp
{
InfoRegExp()
: status(Unknown)
, mEditorDialog(nullptr)
{
}
enum RegexpEditorStatus {
Unknown = 0,
Installed,
NotInstalled
};
RegexpEditorStatus status;
RegexpEditorStatus status = Unknown;
QDialog *mEditorDialog = nullptr;
};
......
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