connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 577f9021980d1df6d8b7f772b17aa9b2505b3a0f
Author:     Hossein <[email protected]>
AuthorDate: Thu Nov 13 13:36:18 2025 +0100
Commit:     Hossein <[email protected]>
CommitDate: Thu Nov 13 21:24:18 2025 +0100

    Avoid using local variable that hides a class member
    
    rBHelper was a local variable with the same name of a member variable of
    the class ODatabaseMetaDataResultSet. With this patch, we avoid this
    name duplication.
    
    The above duplication was causing build problem with the latest VS 2026
    compiler:
    
    error C2220: the following warning is treated as an error
    warning C4458: declaration of 'rBHelper' hides class member
    
    Change-Id: Id70c690c3b09611aefab720aef1f8c8c1dd46829
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/193965
    Tested-by: Jenkins
    Reviewed-by: Hossein <[email protected]>

diff --git a/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx 
b/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx
index 3516571c55cb..e5ba3f32ab49 100644
--- a/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx
+++ b/connectivity/source/drivers/odbc/ODatabaseMetaDataResultSet.cxx
@@ -153,8 +153,7 @@ sal_Int32 SAL_CALL ODatabaseMetaDataResultSet::findColumn( 
const OUString& colum
 
 template < typename T, SQLSMALLINT sqlTypeId > T 
ODatabaseMetaDataResultSet::getInteger ( sal_Int32 columnIndex )
 {
-    ::cppu::OBroadcastHelper& 
rBHelper(ODatabaseMetaDataResultSet_BASE::rBHelper);
-    checkDisposed(rBHelper.bDisposed);
+    checkDisposed(ODatabaseMetaDataResultSet_BASE::rBHelper.bDisposed);
     ::osl::MutexGuard aGuard( m_aMutex );
 
     columnIndex = mapColumn(columnIndex);

Reply via email to