Commit e4b1a563 authored by Laurent Montel's avatar Laurent Montel 😁

Clean up

parent 808ba0ce
......@@ -42,8 +42,6 @@ class PimCommon::AutoCorrectionWidgetPrivate
public:
AutoCorrectionWidgetPrivate()
: ui(new Ui::AutoCorrectionWidget)
, mAutoCorrection(nullptr)
, mWasChanged(false)
{
}
......
......@@ -20,9 +20,7 @@
using namespace PimCommon;
ImportAbstractAutocorrection::ImportAbstractAutocorrection(QWidget *parent)
: mMaxFindStringLenght(0)
, mMinFindStringLenght(0)
, mParent(parent)
: mParent(parent)
{
}
......
......@@ -53,8 +53,8 @@ public:
int minFindStringLenght() const;
protected:
int mMaxFindStringLenght;
int mMinFindStringLenght;
int mMaxFindStringLenght = 0;
int mMinFindStringLenght = 0;
QSet<QString> mUpperCaseExceptions;
QSet<QString> mTwoUpperLetterExceptions;
QHash<QString, QString> mAutocorrectEntries;
......
......@@ -26,7 +26,6 @@ class PimCommon::LineEditWithAutoCorrectionPrivate
public:
LineEditWithAutoCorrectionPrivate()
: mAutoCorrection(new PimCommon::AutoCorrection())
, mNeedToDeleteAutoCorrection(true)
{
}
......@@ -38,7 +37,7 @@ public:
}
PimCommon::AutoCorrection *mAutoCorrection = nullptr;
bool mNeedToDeleteAutoCorrection;
bool mNeedToDeleteAutoCorrection = true;
};
LineEditWithAutoCorrection::LineEditWithAutoCorrection(QWidget *parent, const QString &configFile)
......
......@@ -27,7 +27,6 @@ class PimCommon::RichTextEditWithAutoCorrectionPrivate
public:
RichTextEditWithAutoCorrectionPrivate()
: mAutoCorrection(new PimCommon::AutoCorrection())
, mNeedToDelete(true)
{
}
......@@ -39,7 +38,7 @@ public:
}
PimCommon::AutoCorrection *mAutoCorrection = nullptr;
bool mNeedToDelete = false;
bool mNeedToDelete = true;
};
RichTextEditWithAutoCorrection::RichTextEditWithAutoCorrection(QWidget *parent)
......
......@@ -27,7 +27,6 @@ using namespace PimCommon;
ConfigurePluginDialog::ConfigurePluginDialog(QWidget *parent)
: QDialog(parent)
, mButtonBox(nullptr)
{
}
......
......@@ -31,7 +31,6 @@ class PimCommon::CustomToolsWidgetNgPrivate
{
public:
CustomToolsWidgetNgPrivate()
: mStackedWidget(nullptr)
{
}
......
......@@ -32,7 +32,6 @@ public:
GenericGrantleeFormatterPrivate(const QString &defaultHtmlMain, const QString &themePath)
: mThemePath(themePath)
, mDefaultMainFile(defaultHtmlMain)
, mEngine(nullptr)
{
initializeEngine();
}
......
......@@ -23,8 +23,6 @@ class PimCommon::AbstractGenericPluginInterfacePrivate
{
public:
AbstractGenericPluginInterfacePrivate()
: plugin(nullptr)
, parentWidget(nullptr)
{
}
......
......@@ -30,8 +30,6 @@ class GenericPluginInfo
{
public:
GenericPluginInfo()
: plugin(nullptr)
, isEnabled(true)
{
}
......@@ -39,7 +37,7 @@ public:
QString metaDataFileName;
PimCommon::PluginUtilData pluginData;
PimCommon::GenericPlugin *plugin = nullptr;
bool isEnabled;
bool isEnabled = true;
};
namespace {
......
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