coverity#1158094 Unchecked dynamic_cast
Change-Id: Ieac19e8dbb8328791d0c7110e9c787ec7c3bd448
This commit is contained in:
parent
b487a48294
commit
92781adcdc
1 changed files with 3 additions and 7 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue