PVS: V1048 The 'nConcurrency' variable was assigned the same value.
Change-Id: I5819652b2f5ab491b7412e6cb4d0159f640297bf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177012 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
parent
53872d4eee
commit
2bcaafd4a2
1 changed files with 0 additions and 4 deletions
|
@ -1120,8 +1120,6 @@ bool ODatabaseForm::executeRowSet(::osl::ResettableMutexGuard& _rClearForNotifie
|
|||
// we can't be updatable!
|
||||
if (m_bSubForm && !hasValidParent())
|
||||
{
|
||||
nConcurrency = ResultSetConcurrency::READ_ONLY;
|
||||
|
||||
// don't use any parameters if we don't have a valid parent
|
||||
m_aParameterManager.setAllParametersNull();
|
||||
|
||||
|
@ -1131,8 +1129,6 @@ bool ODatabaseForm::executeRowSet(::osl::ResettableMutexGuard& _rClearForNotifie
|
|||
}
|
||||
else if (m_bAllowInsert || m_bAllowUpdate || m_bAllowDelete)
|
||||
nConcurrency = ResultSetConcurrency::UPDATABLE;
|
||||
else
|
||||
nConcurrency = ResultSetConcurrency::READ_ONLY;
|
||||
|
||||
m_xAggregateSet->setPropertyValue( PROPERTY_RESULTSET_CONCURRENCY, Any( nConcurrency ) );
|
||||
m_xAggregateSet->setPropertyValue( PROPERTY_RESULTSET_TYPE, Any( sal_Int32(ResultSetType::SCROLL_SENSITIVE) ) );
|
||||
|
|
Loading…
Reference in a new issue