diff options
Diffstat (limited to 'interfaces/ktexteditor/configinterfaceextension.cpp')
-rw-r--r-- | interfaces/ktexteditor/configinterfaceextension.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interfaces/ktexteditor/configinterfaceextension.cpp b/interfaces/ktexteditor/configinterfaceextension.cpp index 8557c422f..460d930a4 100644 --- a/interfaces/ktexteditor/configinterfaceextension.cpp +++ b/interfaces/ktexteditor/configinterfaceextension.cpp @@ -72,7 +72,7 @@ ConfigInterfaceExtension *KTextEditor::configInterfaceExtension (Document *doc) if (!doc) return 0; - return static_cast<ConfigInterfaceExtension*>(doc->qt_cast("KTextEditor::ConfigInterfaceExtension")); + return dynamic_cast<KTextEditor::ConfigInterfaceExtension*>(doc); } ConfigInterfaceExtension *KTextEditor::configInterfaceExtension (Plugin *plugin) @@ -80,5 +80,5 @@ ConfigInterfaceExtension *KTextEditor::configInterfaceExtension (Plugin *plugin) if (!plugin) return 0; - return static_cast<ConfigInterfaceExtension*>(plugin->qt_cast("KTextEditor::ConfigInterfaceExtension")); + return dynamic_cast<KTextEditor::ConfigInterfaceExtension*>(plugin); } |