summaryrefslogtreecommitdiffstats
path: root/interfaces/ktexteditor/codecompletioninterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/ktexteditor/codecompletioninterface.cpp')
-rw-r--r--interfaces/ktexteditor/codecompletioninterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/interfaces/ktexteditor/codecompletioninterface.cpp b/interfaces/ktexteditor/codecompletioninterface.cpp
index ae60b2162..416dd593a 100644
--- a/interfaces/ktexteditor/codecompletioninterface.cpp
+++ b/interfaces/ktexteditor/codecompletioninterface.cpp
@@ -45,7 +45,7 @@ CodeCompletionInterface *KTextEditor::codeCompletionInterface (View *view)
if (!view)
return 0;
- return static_cast<CodeCompletionInterface*>(view->qt_cast("KTextEditor::CodeCompletionInterface"));
+ return dynamic_cast<KTextEditor::CodeCompletionInterface*>(view);
}