summaryrefslogtreecommitdiffstats
path: root/interfaces/ktexteditor/encodinginterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/ktexteditor/encodinginterface.cpp')
-rw-r--r--interfaces/ktexteditor/encodinginterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/interfaces/ktexteditor/encodinginterface.cpp b/interfaces/ktexteditor/encodinginterface.cpp
index 341847fb7..a0ef1ad22 100644
--- a/interfaces/ktexteditor/encodinginterface.cpp
+++ b/interfaces/ktexteditor/encodinginterface.cpp
@@ -72,5 +72,5 @@ EncodingInterface *KTextEditor::encodingInterface (Document *doc)
if (!doc)
return 0;
- return static_cast<EncodingInterface*>(doc->qt_cast("KTextEditor::EncodingInterface"));
+ return dynamic_cast<KTextEditor::EncodingInterface*>(doc);
}