diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-06-02 15:13:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-06-02 15:24:57 +0100 |
commit | 7cf46388e4e0a9e6e59e1321c46c62801dde5ee2 (patch) | |
tree | ebdccc4030359ea899d7238966b6aac95620a064 | |
parent | da220c87700064f83c1312148531a9c0fdff4aa3 (diff) |
coverity#1362486 Unchecked dynamic_cast
Change-Id: Ia495ac1434500048ce2f6ffd8d85e3ece13d2bad
-rw-r--r-- | dbaccess/source/ui/dlg/dbwiz.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/dbwiz.cxx b/dbaccess/source/ui/dlg/dbwiz.cxx index 012d73e3ac47..06ce8f6c4919 100644 --- a/dbaccess/source/ui/dlg/dbwiz.cxx +++ b/dbaccess/source/ui/dlg/dbwiz.cxx @@ -89,8 +89,8 @@ ODbTypeWizDialog::ODbTypeWizDialog(vcl::Window* _pParent m_pFinish->SetHelpId(HID_DBWIZ_FINISH); // no local resources needed anymore - const DbuTypeCollectionItem* pCollectionItem = dynamic_cast<const DbuTypeCollectionItem*>( _pItems->GetItem(DSID_TYPECOLLECTION) ); - m_pCollection = pCollectionItem->getCollection(); + const DbuTypeCollectionItem& rCollectionItem = dynamic_cast<const DbuTypeCollectionItem&>(*_pItems->GetItem(DSID_TYPECOLLECTION)); + m_pCollection = rCollectionItem.getCollection(); ActivatePage(); setTitleBase(ModuleRes(STR_DATABASE_TYPE_CHANGE)); |