ClangFormat: Fix a warning about unused argument

Amends e5aae2a781

Change-Id: Ida63b323808f68e58dcd1e28b731ea272cc25cbc
Reviewed-by: Artem Sokolovskii <artem.sokolovskii@qt.io>
This commit is contained in:
Jarek Kobus
2024-08-28 14:21:15 +02:00
parent 969434342b
commit cdf551ccdb

View File

@@ -90,7 +90,7 @@ private:
void createStyleFileIfNeeded(bool isGlobal); void createStyleFileIfNeeded(bool isGlobal);
void initPreview(TextEditor::ICodeStylePreferences *codeStyle); void initPreview(TextEditor::ICodeStylePreferences *codeStyle);
void initEditor(TextEditor::ICodeStylePreferences *codeStyle); void initEditor();
void reopenClangFormatDocument(bool readOnly); void reopenClangFormatDocument(bool readOnly);
@@ -135,7 +135,7 @@ ClangFormatConfigWidget::ClangFormatConfigWidget(
createStyleFileIfNeeded(!m_project); createStyleFileIfNeeded(!m_project);
initPreview(codeStyle); initPreview(codeStyle);
initEditor(codeStyle); initEditor();
using namespace Layouting; using namespace Layouting;
@@ -171,7 +171,7 @@ void ClangFormatConfigWidget::slotCodeStyleChanged(TextEditor::ICodeStylePrefere
updatePreview(); updatePreview();
} }
void ClangFormatConfigWidget::initEditor(TextEditor::ICodeStylePreferences *codeStyle) void ClangFormatConfigWidget::initEditor()
{ {
m_editorScrollArea = new QScrollArea(); m_editorScrollArea = new QScrollArea();
Core::EditorFactories factories = Core::IEditorFactory::preferredEditorTypes( Core::EditorFactories factories = Core::IEditorFactory::preferredEditorTypes(