diff options
author | dt <qtc-committer@nokia.com> | 2009-08-25 16:08:52 +0200 |
---|---|---|
committer | dt <qtc-committer@nokia.com> | 2009-08-27 12:12:35 +0200 |
commit | 9f918428131e2480e9a16f3123a2e71bddbc31e4 (patch) | |
tree | e251677c8848bb2da04410b0c8db4ee6e1672c39 /src/plugins/perforce | |
parent | 0bbc9451545ee7b3d2dcd305e07bfe592ff3f8e8 (diff) |
Compile without rtti support
Since we can easily do that, just do it. No gurantee that we aren't
going to use rtti in the future.
Diffstat (limited to 'src/plugins/perforce')
-rw-r--r-- | src/plugins/perforce/perforceplugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/perforce/perforceplugin.cpp b/src/plugins/perforce/perforceplugin.cpp index e8f7ae3198..5254f93d5d 100644 --- a/src/plugins/perforce/perforceplugin.cpp +++ b/src/plugins/perforce/perforceplugin.cpp @@ -600,8 +600,7 @@ Core::IEditor *PerforcePlugin::openPerforceSubmitEditor(const QString &fileName, Core::EditorManager *editorManager = Core::EditorManager::instance(); Core::IEditor *editor = editorManager->openEditor(fileName, Constants::PERFORCESUBMITEDITOR_KIND); editorManager->ensureEditorManagerVisible(); - PerforceSubmitEditor *submitEditor = dynamic_cast<PerforceSubmitEditor*>(editor); - QTC_ASSERT(submitEditor, return 0); + PerforceSubmitEditor *submitEditor = static_cast<PerforceSubmitEditor*>(editor); submitEditor->restrictToProjectFiles(depotFileNames); submitEditor->registerActions(m_undoAction, m_redoAction, m_submitCurrentLogAction, m_diffSelectedFiles); connect(submitEditor, SIGNAL(diffSelectedFiles(QStringList)), this, SLOT(slotDiff(QStringList))); |