forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user