This is an automated email from the ASF dual-hosted git repository.

leginee pushed a commit to branch backport/pdfimport-pdfbox
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit fa0cbf3e55a40214dce7054455676a51d54b825f
Author: Peter <[email protected]>
AuthorDate: Sun Nov 22 02:06:38 2026 +0100

    dbaccess: do not initialise a unique_ptr with NULL
    
    46c69c8457 turned OOdbcManagement::m_pProcessWait from an auto_ptr into a
    unique_ptr but kept its NULL initialiser.  With MSVC, NULL is the integer
    literal 0, which converts equally well to the pointer constructor and to the
    nullptr_t constructor, so the call is ambiguous and the file does not 
compile
    (C2668).  GCC's NULL is __null, which resolves to the nullptr_t constructor,
    so the break shows only in the Windows build.
    
    A default-constructed unique_ptr is already empty, so drop the initialiser.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    (cherry picked from commit 96f62dbe3a41d4a82db20e031ceab4c8fdd03396)
---
 main/dbaccess/source/ui/dlg/odbcconfig.cxx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/main/dbaccess/source/ui/dlg/odbcconfig.cxx 
b/main/dbaccess/source/ui/dlg/odbcconfig.cxx
index 6f27609a36..f9827a2ad7 100644
--- a/main/dbaccess/source/ui/dlg/odbcconfig.cxx
+++ b/main/dbaccess/source/ui/dlg/odbcconfig.cxx
@@ -358,8 +358,7 @@ protected:
 //=========================================================================
 //-------------------------------------------------------------------------
 OOdbcManagement::OOdbcManagement( const Link& _rAsyncFinishCallback )
-    :m_pProcessWait( NULL )
-    ,m_aAsyncFinishCallback( _rAsyncFinishCallback )
+    :m_aAsyncFinishCallback( _rAsyncFinishCallback )
 {
 }
 

Reply via email to