ClangFormatPlugin: Don't leak ClangFormatStyleFactory

Detected by memory analyzer.
Remove unneeded includes.

Change-Id: I270b8a6f1d98fc25297b1f69e899551399437cf0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Jarek Kobus
2023-02-06 12:48:51 +01:00
parent 10295fc0fa
commit 930312546d
2 changed files with 19 additions and 36 deletions

View File

@@ -5,6 +5,8 @@
#include <extensionsystem/iplugin.h>
namespace TextEditor { class ICodeStylePreferencesFactory; }
namespace ClangFormat {
class ClangFormatPlugin : public ExtensionSystem::IPlugin
@@ -12,8 +14,11 @@ class ClangFormatPlugin : public ExtensionSystem::IPlugin
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "ClangFormat.json")
~ClangFormatPlugin() override;
void initialize() final;
QVector<QObject *> createTestObjects() const override;
TextEditor::ICodeStylePreferencesFactory *m_factory = nullptr;
};
} // namespace ClangTools