diff options
Diffstat (limited to 'interfaces/ktexteditor/configinterface.cpp')
-rw-r--r-- | interfaces/ktexteditor/configinterface.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interfaces/ktexteditor/configinterface.cpp b/interfaces/ktexteditor/configinterface.cpp index 2ca2e4b12..63bf086e0 100644 --- a/interfaces/ktexteditor/configinterface.cpp +++ b/interfaces/ktexteditor/configinterface.cpp @@ -67,7 +67,7 @@ ConfigInterface *KTextEditor::configInterface (Document *doc) if (!doc) return 0; - return static_cast<ConfigInterface*>(doc->qt_cast("KTextEditor::ConfigInterface")); + return dynamic_cast<KTextEditor::ConfigInterface*>(doc); } ConfigInterface *KTextEditor::configInterface (Plugin *plugin) @@ -75,5 +75,5 @@ ConfigInterface *KTextEditor::configInterface (Plugin *plugin) if (!plugin) return 0; - return static_cast<ConfigInterface*>(plugin->qt_cast("KTextEditor::ConfigInterface")); + return dynamic_cast<KTextEditor::ConfigInterface*>(plugin); } |