summaryrefslogtreecommitdiff
path: root/forms/source/component/Edit.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'forms/source/component/Edit.cxx')
-rw-r--r--forms/source/component/Edit.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/forms/source/component/Edit.cxx b/forms/source/component/Edit.cxx
index 600010321d7b..589b0e7ffd3b 100644
--- a/forms/source/component/Edit.cxx
+++ b/forms/source/component/Edit.cxx
@@ -634,10 +634,11 @@ bool OEditModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
}
else
{
- OSL_PRECOND( m_pValueFormatter.get(), "OEditModel::commitControlValueToDbColumn: no value formatter!" );
+ OSL_PRECOND(m_pValueFormatter,
+ "OEditModel::commitControlValueToDbColumn: no value formatter!");
try
{
- if ( m_pValueFormatter.get() )
+ if (m_pValueFormatter)
{
if ( !m_pValueFormatter->setFormattedValue( sNewValue ) )
return false;
@@ -657,9 +658,10 @@ bool OEditModel::commitControlValueToDbColumn( bool /*_bPostReset*/ )
Any OEditModel::translateDbColumnToControlValue()
{
- OSL_PRECOND( m_pValueFormatter.get(), "OEditModel::translateDbColumnToControlValue: no value formatter!" );
+ OSL_PRECOND(m_pValueFormatter,
+ "OEditModel::translateDbColumnToControlValue: no value formatter!");
Any aRet;
- if ( m_pValueFormatter.get() )
+ if (m_pValueFormatter)
{
OUString sValue( m_pValueFormatter->getFormattedValue() );
if ( sValue.isEmpty()