Kaydet (Commit) 92781adc authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1158094 Unchecked dynamic_cast

Change-Id: Ieac19e8dbb8328791d0c7110e9c787ec7c3bd448
üst b487a482
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment