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

Clean up code

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