diff options
Diffstat (limited to 'interfaces/ktexteditor/highlightinginterface.cpp')
-rw-r--r-- | interfaces/ktexteditor/highlightinginterface.cpp | 2 |
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); } |