diff --git a/src/plugins/texteditor/icompletioncollector.cpp b/src/plugins/texteditor/icompletioncollector.cpp
index 0d4dd1296673f4c5fc38bd370a083349122097d4..c6f6713aed7c971599d80b4078aec4dc6e51f619 100644
--- a/src/plugins/texteditor/icompletioncollector.cpp
+++ b/src/plugins/texteditor/icompletioncollector.cpp
@@ -41,7 +41,7 @@ using namespace TextEditor::Internal;
 namespace TextEditor {
 namespace Internal {
 
-struct ICompletionCollectorPrivate
+class ICompletionCollectorPrivate
 {
 public:
     CompletionSettings m_completionSettings;