forms/source/component/DatabaseForm.cxx |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 2bcaafd4a25e4875ab08114f5a8d198ad3a35212
Author:     Xisco Fauli <[email protected]>
AuthorDate: Fri Nov 22 12:20:36 2024 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Fri Nov 22 14:12:20 2024 +0100

    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 <[email protected]>

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) ) );

Reply via email to