summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2024-11-22 12:20:36 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2024-11-22 14:12:20 +0100
commit2bcaafd4a25e4875ab08114f5a8d198ad3a35212 (patch)
treea3a5ccc50baaebfe811c3e703486cfe18de9d17c
parent53872d4eee780dce8072800eb333c618ece37c32 (diff)
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>
-rw-r--r--forms/source/component/DatabaseForm.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx
index e68551c9fd5b..7cc92ac11c32 100644
--- a/forms/source/component/DatabaseForm.cxx
+++ b/forms/source/component/DatabaseForm.cxx
@@ -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) ) );