summaryrefslogtreecommitdiffstats
path: root/interfaces/ktexteditor/viewcursorinterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/ktexteditor/viewcursorinterface.cpp')
-rw-r--r--interfaces/ktexteditor/viewcursorinterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/interfaces/ktexteditor/viewcursorinterface.cpp b/interfaces/ktexteditor/viewcursorinterface.cpp
index 0c834be42..58cea6289 100644
--- a/interfaces/ktexteditor/viewcursorinterface.cpp
+++ b/interfaces/ktexteditor/viewcursorinterface.cpp
@@ -70,5 +70,5 @@ ViewCursorInterface *KTextEditor::viewCursorInterface (View *view)
if (!view)
return 0;
- return static_cast<ViewCursorInterface*>(view->qt_cast("KTextEditor::ViewCursorInterface"));
+ return dynamic_cast<KTextEditor::ViewCursorInterface*>(view);
}