summaryrefslogtreecommitdiffstats
path: root/interfaces/ktexteditor/editinterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/ktexteditor/editinterface.cpp')
-rw-r--r--interfaces/ktexteditor/editinterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/interfaces/ktexteditor/editinterface.cpp b/interfaces/ktexteditor/editinterface.cpp
index 6722fc555..cfa0b67bc 100644
--- a/interfaces/ktexteditor/editinterface.cpp
+++ b/interfaces/ktexteditor/editinterface.cpp
@@ -52,6 +52,6 @@ EditInterface *KTextEditor::editInterface (Document *doc)
if (!doc)
return 0;
- return static_cast<EditInterface*>(doc->qt_cast("KTextEditor::EditInterface"));
+ return dynamic_cast<KTextEditor::EditInterface*>(doc);
}