summaryrefslogtreecommitdiffstats
path: root/interfaces/ktexteditor/highlightinginterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/ktexteditor/highlightinginterface.cpp')
-rw-r--r--interfaces/ktexteditor/highlightinginterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/interfaces/ktexteditor/highlightinginterface.cpp b/interfaces/ktexteditor/highlightinginterface.cpp
index f606ab5c0..1677ca87c 100644
--- a/interfaces/ktexteditor/highlightinginterface.cpp
+++ b/interfaces/ktexteditor/highlightinginterface.cpp
@@ -65,5 +65,5 @@ HighlightingInterface *KTextEditor::highlightingInterface (Document *doc)
if (!doc)
return 0;
- return static_cast<HighlightingInterface*>(doc->qt_cast("KTextEditor::HighlightingInterface"));
+ return dynamic_cast<KTextEditor::HighlightingInterface*>(doc);
}