WaE: -Werror=logical-op dynamic_cast dbg test is on the result not input

Change-Id: Ib3750fe1d2ce480beb5b4c512ed74701f29eecfc
This commit is contained in:
Caolán McNamara
2016-05-12 10:22:51 +01:00
parent c1b6d15472
commit 89f22051f2

View File

@@ -1071,7 +1071,7 @@ namespace svxform
Reference< XIndexContainer > xContainer(xCurrentChild->getParent(), UNO_QUERY);
FmFormData* pCurrentParentUserData = static_cast<FmFormData*>(pCurrentUserData->GetParent());
DBG_ASSERT(pCurrentParentUserData == nullptr || dynamic_cast<const FmFormData*>( pCurrentParentUserData) != nullptr, "NavigatorTree::implExecuteDataTransfer: invalid parent");
DBG_ASSERT(pCurrentParentUserData == nullptr || dynamic_cast<const FmFormData*>(pCurrentUserData->GetParent()) != nullptr, "NavigatorTree::implExecuteDataTransfer: invalid parent");
// remove from parent
if (pCurrentParentUserData)