Commit 445e826b authored by Christoph Cullmann's avatar Christoph Cullmann

Merge branch 'gawin/kate-impr/initialize'

parents b778e770 a3d4cadb
...@@ -23,8 +23,7 @@ ...@@ -23,8 +23,7 @@
#include <QDir> #include <QDir>
BtFileIndexer::BtFileIndexer(KateBtDatabase *database) BtFileIndexer::BtFileIndexer(KateBtDatabase *database)
: QThread() : cancelAsap(false)
, cancelAsap(false)
, db(database) , db(database)
{ {
} }
......
...@@ -72,7 +72,6 @@ void CloseExceptPlugin::writeSessionConfig(KConfigGroup &config) ...@@ -72,7 +72,6 @@ void CloseExceptPlugin::writeSessionConfig(KConfigGroup &config)
// BEGIN CloseExceptPluginView // BEGIN CloseExceptPluginView
CloseExceptPluginView::CloseExceptPluginView(KTextEditor::MainWindow *mw, CloseExceptPlugin *plugin) CloseExceptPluginView::CloseExceptPluginView(KTextEditor::MainWindow *mw, CloseExceptPlugin *plugin)
: QObject(mw) : QObject(mw)
, KXMLGUIClient()
, m_plugin(plugin) , m_plugin(plugin)
, m_show_confirmation_action(new KToggleAction(i18nc("@action:inmenu", "Show Confirmation"), this)) , m_show_confirmation_action(new KToggleAction(i18nc("@action:inmenu", "Show Confirmation"), this))
, m_except_menu(new KActionMenu(i18nc("@action:inmenu close docs except the following...", "Close Except"), this)) , m_except_menu(new KActionMenu(i18nc("@action:inmenu close docs except the following...", "Close Except"), this))
......
...@@ -125,7 +125,7 @@ public Q_SLOTS: ...@@ -125,7 +125,7 @@ public Q_SLOTS:
} }
private: private:
bool m_show_confirmation_needed; bool m_show_confirmation_needed = false;
}; };
} // namespace kate } // namespace kate
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
KateBookmarkHandler::KateBookmarkHandler(KateFileBrowser *parent, QMenu *kpopupmenu) KateBookmarkHandler::KateBookmarkHandler(KateFileBrowser *parent, QMenu *kpopupmenu)
: QObject(parent) : QObject(parent)
, KBookmarkOwner()
, mParent(parent) , mParent(parent)
, m_menu(kpopupmenu) , m_menu(kpopupmenu)
{ {
......
...@@ -103,11 +103,11 @@ public: ...@@ -103,11 +103,11 @@ public:
private: private:
KToolBar *m_toolbar; KToolBar *m_toolbar;
KActionCollection *m_actionCollection; KActionCollection *m_actionCollection;
KateBookmarkHandler *m_bookmarkHandler; KateBookmarkHandler *m_bookmarkHandler = nullptr;
KUrlNavigator *m_urlNavigator; KUrlNavigator *m_urlNavigator;
KDirOperator *m_dirOperator; KDirOperator *m_dirOperator;
KHistoryComboBox *m_filter; KHistoryComboBox *m_filter;
QAction *m_autoSyncFolder; QAction *m_autoSyncFolder = nullptr;
KTextEditor::MainWindow *m_mainWindow; KTextEditor::MainWindow *m_mainWindow;
}; };
......
...@@ -42,7 +42,6 @@ public: ...@@ -42,7 +42,6 @@ public:
ResultNode(const QString &_name, const bool _dir = false) ResultNode(const QString &_name, const bool _dir = false)
: name(_name) : name(_name)
, dir(_dir) , dir(_dir)
, children()
{ {
} }
......
...@@ -63,7 +63,7 @@ public Q_SLOTS: ...@@ -63,7 +63,7 @@ public Q_SLOTS:
private: private:
QList<KateFileTreePluginView *> m_views; QList<KateFileTreePluginView *> m_views;
KateFileTreeConfigPage *m_confPage; KateFileTreeConfigPage *m_confPage = nullptr;
KateFileTreePluginSettings m_settings; KateFileTreePluginSettings m_settings;
}; };
...@@ -117,7 +117,7 @@ private: ...@@ -117,7 +117,7 @@ private:
KateFileTree *m_fileTree; KateFileTree *m_fileTree;
KateFileTreeProxyModel *m_proxyModel; KateFileTreeProxyModel *m_proxyModel;
KateFileTreeModel *m_documentModel; KateFileTreeModel *m_documentModel;
bool m_hasLocalPrefs; bool m_hasLocalPrefs = false;
bool m_loadingDocuments; bool m_loadingDocuments;
KateFileTreePlugin *m_plug; KateFileTreePlugin *m_plug;
KTextEditor::MainWindow *m_mainWindow; KTextEditor::MainWindow *m_mainWindow;
......
...@@ -94,7 +94,7 @@ private: ...@@ -94,7 +94,7 @@ private:
private: private:
KTextEditor::MainWindow *m_mainWindow; KTextEditor::MainWindow *m_mainWindow;
QComboBox *m_targetCombo; QComboBox *m_targetCombo;
int m_currentTarget; int m_currentTarget = 0;
QToolButton *m_addTarget; QToolButton *m_addTarget;
QToolButton *m_copyTarget; QToolButton *m_copyTarget;
QToolButton *m_deleteTarget; QToolButton *m_deleteTarget;
...@@ -117,7 +117,7 @@ private: ...@@ -117,7 +117,7 @@ private:
QLabel *m_execLabel; QLabel *m_execLabel;
QLabel *m_workDirLabel; QLabel *m_workDirLabel;
QLabel *m_argumentsLabel; QLabel *m_argumentsLabel;
KSelectAction *m_targetSelectAction; KSelectAction *m_targetSelectAction = nullptr;
AdvancedGDBSettings *m_advanced; AdvancedGDBSettings *m_advanced;
}; };
......
...@@ -111,7 +111,7 @@ private: ...@@ -111,7 +111,7 @@ private:
QString m_currentFile; QString m_currentFile;
QString m_newFrameFile; QString m_newFrameFile;
int m_newFrameLevel; int m_newFrameLevel = 0;
QStringList m_nextCommands; QStringList m_nextCommands;
QString m_lastCommand; QString m_lastCommand;
bool m_debugLocationChanged; bool m_debugLocationChanged;
......
...@@ -76,11 +76,11 @@ private: ...@@ -76,11 +76,11 @@ private:
QFile m_stdoutD; QFile m_stdoutD;
QFile m_stderrD; QFile m_stderrD;
int m_stdoutFD; int m_stdoutFD = 0;
int m_stderrFD; int m_stderrFD = 0;
QSocketNotifier *m_stdoutNotifier; QSocketNotifier *m_stdoutNotifier = nullptr;
QSocketNotifier *m_stderrNotifier; QSocketNotifier *m_stderrNotifier = nullptr;
}; };
#endif #endif
...@@ -86,7 +86,7 @@ private: ...@@ -86,7 +86,7 @@ private:
QProcess m_proc; QProcess m_proc;
KateCTagsPlugin *m_plugin; KateCTagsPlugin *m_plugin;
Ui_CTagsGlobalConfig m_confUi; Ui_CTagsGlobalConfig m_confUi{};
}; };
#endif #endif
...@@ -97,7 +97,7 @@ private: ...@@ -97,7 +97,7 @@ private:
QPointer<KTextEditor::MainWindow> m_mWin; QPointer<KTextEditor::MainWindow> m_mWin;
QPointer<QWidget> m_toolView; QPointer<QWidget> m_toolView;
Ui::kateCtags m_ctagsUi; Ui::kateCtags m_ctagsUi{};
QPointer<KActionMenu> m_menu; QPointer<KActionMenu> m_menu;
QAction *m_gotoDef; QAction *m_gotoDef;
......
...@@ -130,7 +130,7 @@ private: ...@@ -130,7 +130,7 @@ private:
KTextEditor::MainWindow *m_win; KTextEditor::MainWindow *m_win;
QWidget *m_toolView; QWidget *m_toolView;
Ui::build m_buildUi; Ui::build m_buildUi{};
QWidget *m_buildWidget; QWidget *m_buildWidget;
int m_outputWidgetWidth; int m_outputWidgetWidth;
TargetsUi *m_targetsUi; TargetsUi *m_targetsUi;
...@@ -145,10 +145,10 @@ private: ...@@ -145,10 +145,10 @@ private:
QRegularExpression m_filenameDetector; QRegularExpression m_filenameDetector;
QRegularExpression m_filenameDetectorIcpc; QRegularExpression m_filenameDetectorIcpc;
bool m_filenameDetectorGccWorked; bool m_filenameDetectorGccWorked;
bool m_ninjaBuildDetected; bool m_ninjaBuildDetected = false;
QRegularExpression m_newDirDetector; QRegularExpression m_newDirDetector;
unsigned int m_numErrors; unsigned int m_numErrors = 0;
unsigned int m_numWarnings; unsigned int m_numWarnings = 0;
QString m_prevItemContent; QString m_prevItemContent;
QModelIndex m_previousIndex; QModelIndex m_previousIndex;
QPointer<KTextEditor::Message> m_infoMessage; QPointer<KTextEditor::Message> m_infoMessage;
......
...@@ -46,7 +46,7 @@ public Q_SLOTS: ...@@ -46,7 +46,7 @@ public Q_SLOTS:
void defaults() override; void defaults() override;
private: private:
KateSQLPlugin *m_plugin; KateSQLPlugin *m_plugin = nullptr;
QCheckBox *m_box; QCheckBox *m_box;
OutputStyleWidget *m_outputStyleWidget; OutputStyleWidget *m_outputStyleWidget;
......
...@@ -53,7 +53,6 @@ ...@@ -53,7 +53,6 @@
KateSQLView::KateSQLView(KTextEditor::Plugin *plugin, KTextEditor::MainWindow *mw) KateSQLView::KateSQLView(KTextEditor::Plugin *plugin, KTextEditor::MainWindow *mw)
: QObject(mw) : QObject(mw)
, KXMLGUIClient()
, m_manager(new SQLManager(this)) , m_manager(new SQLManager(this))
, m_mainWindow(mw) , m_mainWindow(mw)
{ {
......
...@@ -214,7 +214,7 @@ void LSPClientConfigPage::updateConfigTextErrorState() ...@@ -214,7 +214,7 @@ void LSPClientConfigPage::updateConfigTextErrorState()
} }
// check json validity // check json validity
QJsonParseError error; QJsonParseError error{};
auto json = QJsonDocument::fromJson(data, &error); auto json = QJsonDocument::fromJson(data, &error);
if (error.error == QJsonParseError::NoError) { if (error.error == QJsonParseError::NoError) {
if (json.isObject()) { if (json.isObject()) {
......
...@@ -48,8 +48,7 @@ class LSPClientHoverImpl : public LSPClientHover ...@@ -48,8 +48,7 @@ class LSPClientHoverImpl : public LSPClientHover
public: public:
LSPClientHoverImpl(QSharedPointer<LSPClientServerManager> manager) LSPClientHoverImpl(QSharedPointer<LSPClientServerManager> manager)
: LSPClientHover() : m_manager(std::move(manager))
, m_manager(std::move(manager))
, m_server(nullptr) , m_server(nullptr)
{ {
} }
......
...@@ -54,22 +54,22 @@ public: ...@@ -54,22 +54,22 @@ public:
const QUrl m_defaultConfigPath; const QUrl m_defaultConfigPath;
// settings // settings
bool m_symbolDetails; bool m_symbolDetails = false;
bool m_symbolExpand; bool m_symbolExpand = false;
bool m_symbolTree; bool m_symbolTree = false;
bool m_symbolSort; bool m_symbolSort = false;
bool m_complDoc; bool m_complDoc = false;
bool m_refDeclaration; bool m_refDeclaration = false;
bool m_diagnostics; bool m_diagnostics = false;
bool m_diagnosticsHighlight; bool m_diagnosticsHighlight = false;
bool m_diagnosticsMark; bool m_diagnosticsMark = false;
bool m_messages; bool m_messages = false;
int m_messagesAutoSwitch; int m_messagesAutoSwitch = 0;
bool m_autoHover; bool m_autoHover = false;
bool m_onTypeFormatting; bool m_onTypeFormatting = false;
bool m_incrementalSync; bool m_incrementalSync = false;
QUrl m_configPath; QUrl m_configPath;
bool m_semanticHighlighting; bool m_semanticHighlighting = false;
// debug mode? // debug mode?
bool m_debugMode = false; bool m_debugMode = false;
......
...@@ -620,7 +620,7 @@ private: ...@@ -620,7 +620,7 @@ private:
if (f.open(QIODevice::ReadOnly)) { if (f.open(QIODevice::ReadOnly)) {
const auto data = f.readAll(); const auto data = f.readAll();
if (!data.isEmpty()) { if (!data.isEmpty()) {
QJsonParseError error; QJsonParseError error{};
auto json = QJsonDocument::fromJson(data, &error); auto json = QJsonDocument::fromJson(data, &error);
if (error.error == QJsonParseError::NoError) { if (error.error == QJsonParseError::NoError) {
if (json.isObject()) { if (json.isObject()) {
......
...@@ -41,7 +41,6 @@ K_PLUGIN_FACTORY_WITH_JSON(KateOpenHeaderFactory, "kateopenheaderplugin.json", r ...@@ -41,7 +41,6 @@ K_PLUGIN_FACTORY_WITH_JSON(KateOpenHeaderFactory, "kateopenheaderplugin.json", r
PluginViewKateOpenHeader::PluginViewKateOpenHeader(PluginKateOpenHeader *plugin, KTextEditor::MainWindow *mainwindow) PluginViewKateOpenHeader::PluginViewKateOpenHeader(PluginKateOpenHeader *plugin, KTextEditor::MainWindow *mainwindow)
: KTextEditor::Command(QStringList() << QStringLiteral("toggle-header"), mainwindow) : KTextEditor::Command(QStringList() << QStringLiteral("toggle-header"), mainwindow)
, KXMLGUIClient()
, m_plugin(plugin) , m_plugin(plugin)
, m_mainWindow(mainwindow) , m_mainWindow(mainwindow)
{ {
......
...@@ -39,9 +39,7 @@ ...@@ -39,9 +39,7 @@
#include <utility> #include <utility>
KateProject::KateProject(ThreadWeaver::Queue *weaver, KateProjectPlugin *plugin) KateProject::KateProject(ThreadWeaver::Queue *weaver, KateProjectPlugin *plugin)
: QObject() : m_notesDocument(nullptr)
, m_fileLastModified()
, m_notesDocument(nullptr)
, m_untrackedDocumentsRoot(nullptr) , m_untrackedDocumentsRoot(nullptr)
, m_weaver(weaver) , m_weaver(weaver)
, m_plugin(plugin) , m_plugin(plugin)
...@@ -100,7 +98,7 @@ QVariantMap KateProject::readProjectFile() const ...@@ -100,7 +98,7 @@ QVariantMap KateProject::readProjectFile() const
* parse the whole file, bail out again on error! * parse the whole file, bail out again on error!
*/ */
const QByteArray jsonData = file.readAll(); const QByteArray jsonData = file.readAll();
QJsonParseError parseError; QJsonParseError parseError{};
QJsonDocument project(QJsonDocument::fromJson(jsonData, &parseError)); QJsonDocument project(QJsonDocument::fromJson(jsonData, &parseError));
if (parseError.error != QJsonParseError::NoError) { if (parseError.error != QJsonParseError::NoError) {
......
...@@ -91,7 +91,7 @@ private: ...@@ -91,7 +91,7 @@ private:
/** /**
* automatic invocation? * automatic invocation?
*/ */
bool m_automatic; bool m_automatic = false;
}; };
#endif #endif
...@@ -30,8 +30,7 @@ ...@@ -30,8 +30,7 @@
#include <QFileInfo> #include <QFileInfo>
KateProjectInfoView::KateProjectInfoView(KateProjectPluginView *pluginView, KateProject *project) KateProjectInfoView::KateProjectInfoView(KateProjectPluginView *pluginView, KateProject *project)
: QTabWidget() : m_pluginView(pluginView)
, m_pluginView(pluginView)
, m_project(project) , m_project(project)
{ {
/** /**
......
...@@ -32,8 +32,7 @@ ...@@ -32,8 +32,7 @@
#include <kmessagewidget.h> #include <kmessagewidget.h>
KateProjectInfoViewCodeAnalysis::KateProjectInfoViewCodeAnalysis(KateProjectPluginView *pluginView, KateProject *project) KateProjectInfoViewCodeAnalysis::KateProjectInfoViewCodeAnalysis(KateProjectPluginView *pluginView, KateProject *project)
: QWidget() : m_pluginView(pluginView)
, m_pluginView(pluginView)
, m_project(project) , m_project(project)
, m_messageWidget(nullptr) , m_messageWidget(nullptr)
, m_startStopAnalysis(new QPushButton(i18n("Start Analysis..."))) , m_startStopAnalysis(new QPushButton(i18n("Start Analysis...")))
......
...@@ -24,8 +24,7 @@ ...@@ -24,8 +24,7 @@
#include <QVBoxLayout> #include <QVBoxLayout>
KateProjectInfoViewNotes::KateProjectInfoViewNotes(KateProjectPluginView *pluginView, KateProject *project) KateProjectInfoViewNotes::KateProjectInfoViewNotes(KateProjectPluginView *pluginView, KateProject *project)
: QWidget() : m_pluginView(pluginView)
, m_pluginView(pluginView)
, m_project(project) , m_project(project)
, m_edit(new QPlainTextEdit()) , m_edit(new QPlainTextEdit())
{ {
......
...@@ -28,8 +28,7 @@ ...@@ -28,8 +28,7 @@
KPluginFactory *KateProjectInfoViewTerminal::s_pluginFactory = nullptr; KPluginFactory *KateProjectInfoViewTerminal::s_pluginFactory = nullptr;
KateProjectInfoViewTerminal::KateProjectInfoViewTerminal(KateProjectPluginView *pluginView, const QString &directory) KateProjectInfoViewTerminal::KateProjectInfoViewTerminal(KateProjectPluginView *pluginView, const QString &directory)
: QWidget() : m_pluginView(pluginView)
, m_pluginView(pluginView)
, m_directory(directory) , m_directory(directory)
, m_konsolePart(nullptr) , m_konsolePart(nullptr)
{ {
......
...@@ -67,6 +67,9 @@ KateProjectPlugin::KateProjectPlugin(QObject *parent, const QList<QVariant> &) ...@@ -67,6 +67,9 @@ KateProjectPlugin::KateProjectPlugin(QObject *parent, const QList<QVariant> &)
, m_autoGit(true) , m_autoGit(true)
, m_autoSubversion(true) , m_autoSubversion(true)
, m_autoMercurial(true) , m_autoMercurial(true)
, m_indexEnabled(false)
, m_multiProjectCompletion(false)
, m_multiProjectGoto(false)
, m_weaver(new ThreadWeaver::Queue(this)) , m_weaver(new ThreadWeaver::Queue(this))
{ {
qRegisterMetaType<KateProjectSharedQStandardItem>("KateProjectSharedQStandardItem"); qRegisterMetaType<KateProjectSharedQStandardItem>("KateProjectSharedQStandardItem");
......
...@@ -32,8 +32,7 @@ ...@@ -32,8 +32,7 @@
#include <QVBoxLayout> #include <QVBoxLayout>
KateProjectView::KateProjectView(KateProjectPluginView *pluginView, KateProject *project) KateProjectView::KateProjectView(KateProjectPluginView *pluginView, KateProject *project)
: QWidget() : m_pluginView(pluginView)
, m_pluginView(pluginView)
, m_project(project) , m_project(project)
, m_treeView(new KateProjectViewTree(pluginView, project)) , m_treeView(new KateProjectViewTree(pluginView, project))
, m_filter(new KLineEdit()) , m_filter(new KLineEdit())
......
...@@ -30,8 +30,7 @@ ...@@ -30,8 +30,7 @@
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>
KateProjectViewTree::KateProjectViewTree(KateProjectPluginView *pluginView, KateProject *project) KateProjectViewTree::KateProjectViewTree(KateProjectPluginView *pluginView, KateProject *project)
: QTreeView() : m_pluginView(pluginView)
, m_pluginView(pluginView)
, m_project(project) , m_project(project)
{ {
/** /**
......
...@@ -32,9 +32,7 @@ ...@@ -32,9 +32,7 @@
#include <QTime> #include <QTime>
KateProjectWorker::KateProjectWorker(const QString &baseDir, const QString &indexDir, const QVariantMap &projectMap, bool force) KateProjectWorker::KateProjectWorker(const QString &baseDir, const QString &indexDir, const QVariantMap &projectMap, bool force)
: QObject() : m_baseDir(baseDir)
, ThreadWeaver::Job()
, m_baseDir(baseDir)
, m_indexDir(indexDir) , m_indexDir(indexDir)
, m_projectMap(projectMap) , m_projectMap(projectMap)
, m_force(force) , m_force(force)
......
...@@ -91,7 +91,7 @@ private: ...@@ -91,7 +91,7 @@ private:
/** /**
* our project, only as QObject, we only send messages back and forth! * our project, only as QObject, we only send messages back and forth!
*/ */
QObject *m_project; QObject *m_project = nullptr;
/** /**
* project base directory name * project base directory name
......
...@@ -41,56 +41,56 @@ public: ...@@ -41,56 +41,56 @@ public:
/////// ///////
// Init // Init
int basePeriod; int basePeriod = 0;
int reductionCoreCount; int reductionCoreCount = 0;
int timeCoreCount; int timeCoreCount = 0;
///////// /////////
// System // System
int perfSamplingPeriod; int perfSamplingPeriod = 0;
float floatTolerance; float floatTolerance = 0;
int timeTolerance; int timeTolerance = 0;
int primaryTimeHorizon; int primaryTimeHorizon = 0;
int secondaryTimeHorizon; int secondaryTimeHorizon = 0;
// Model // Model
float mdlInertiaSuccessRateThreshold; float mdlInertiaSuccessRateThreshold = 0;
int mdlInertiaCountThreshold; int mdlInertiaCountThreshold = 0;
// Targeted Pattern Extractor // Targeted Pattern Extractor
float tpxDeltaSuccessRateThreshold; float tpxDeltaSuccessRateThreshold = 0;
int tpxTimehorizon; int tpxTimehorizon{};
// Simulation // Simulation
int minimumSimulationTimeHorizon; int minimumSimulationTimeHorizon = 0;
int maximumSimulationTimeHorizon; int maximumSimulationTimeHorizon = 0;
float simulationTimeHorizon; float simulationTimeHorizon = 0;
//////// ////////
// Debug // Debug
bool debug; bool debug = false;
int notificationMarkerResilience; int notificationMarkerResilience = 0;
int goalPredictionSuccessResilience; int goalPredictionSuccessResilience = 0;
int debugWindows; int debugWindows = 0;
int traceLevels; int traceLevels = 0;
bool getObjects; bool getObjects = false;
bool decompileObjects; bool decompileObjects = false;
QString decompilationFilePath; QString decompilationFilePath;
bool ignoreNamedObjects; bool ignoreNamedObjects = false;
QString objectsPath; QString objectsPath;
bool testObjects; bool testObjects = false;
////// //////
// Run // Run
int runTime; int runTime = 0;
int probeLevel; int probeLevel = 0;
bool getModels; bool getModels = false;
bool decompileModels; bool decompileModels = false;
bool ignoreNamedModels; bool ignoreNamedModels = false;
QString modelsPath; QString modelsPath;
bool testModels; bool testModels = false;
}; };