coverity#1158094 Unchecked dynamic_cast

Change-Id: Ieac19e8dbb8328791d0c7110e9c787ec7c3bd448
This commit is contained in:
Caolán McNamara 2014-06-06 11:02:13 +01:00
parent b487a48294
commit 92781adcdc

View file

@ -1067,18 +1067,14 @@ void DbLimitedLengthField::implAdjustGenericFieldSetting( const Reference< XProp
}
}
void DbLimitedLengthField::implSetEffectiveMaxTextLen( sal_Int32 _nMaxLen )
{
dynamic_cast< Edit* >( m_pWindow )->SetMaxTextLen( _nMaxLen );
if ( m_pPainter )
dynamic_cast< Edit* >( m_pPainter )->SetMaxTextLen( _nMaxLen );
dynamic_cast<Edit&>(*m_pWindow).SetMaxTextLen(_nMaxLen);
if (m_pPainter)
dynamic_cast<Edit&>(*m_pPainter).SetMaxTextLen(_nMaxLen);
}
//= DbTextField
DbTextField::DbTextField(DbGridColumn& _rColumn)
:DbLimitedLengthField(_rColumn)
,m_pEdit( NULL )