This is an automated email from the ASF dual-hosted git repository. jimjag pushed a commit to branch AOO50X in repository https://gitbox.apache.org/repos/asf/openoffice.git
commit 3fc1d30ba1288bfbf1633bd8dc4fbbe5f7439dd1 Author: Jim Jagielski <[email protected]> AuthorDate: Sat Nov 7 03:39:20 2026 -0500 Use unique_ptr<T[]> for new[] buffers; convert auto_ptr in jdbc ResultSet (more c++11 deprecation warnings) --- main/connectivity/source/drivers/jdbc/ResultSet.cxx | 2 +- main/dtrans/source/win32/misc/ImplHelper.cxx | 2 +- main/filter/source/msfilter/msocximex.cxx | 2 +- main/filter/source/svg/svgwriter.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main/connectivity/source/drivers/jdbc/ResultSet.cxx b/main/connectivity/source/drivers/jdbc/ResultSet.cxx index 54eb25ab76..c1292e625f 100644 --- a/main/connectivity/source/drivers/jdbc/ResultSet.cxx +++ b/main/connectivity/source/drivers/jdbc/ResultSet.cxx @@ -882,7 +882,7 @@ void SAL_CALL java_sql_ResultSet::updateNumericObject( sal_Int32 columnIndex, co { // Parameter konvertieren double nTemp = 0.0; - ::std::auto_ptr<java_math_BigDecimal> pBigDecimal; + ::std::unique_ptr<java_math_BigDecimal> pBigDecimal; if ( x >>= nTemp) { pBigDecimal.reset(new java_math_BigDecimal(nTemp)); diff --git a/main/dtrans/source/win32/misc/ImplHelper.cxx b/main/dtrans/source/win32/misc/ImplHelper.cxx index 648bd5ff2c..0081d3a7ee 100644 --- a/main/dtrans/source/win32/misc/ImplHelper.cxx +++ b/main/dtrans/source/win32/misc/ImplHelper.cxx @@ -132,7 +132,7 @@ OUString SAL_CALL getWinCPFromLocaleId( LCID lcid, LCTYPE lctype ) OSL_ASSERT( len > 0 ); - std::unique_ptr< sal_Unicode > lpwchBuff( new sal_Unicode[len] ); + std::unique_ptr< sal_Unicode[] > lpwchBuff( new sal_Unicode[len] ); if ( NULL != lpwchBuff.get( ) ) { diff --git a/main/filter/source/msfilter/msocximex.cxx b/main/filter/source/msfilter/msocximex.cxx index 105cea907f..9db9c0b870 100644 --- a/main/filter/source/msfilter/msocximex.cxx +++ b/main/filter/source/msfilter/msocximex.cxx @@ -670,7 +670,7 @@ class ContainerRecReader sal_uInt32 nTipBufSize = lclGetBufferSize( nTipLen ); if( nTipBufSize > 0 ) { - std::unique_ptr< sal_Char > pTipName; + std::unique_ptr< sal_Char[] > pTipName; pTipName.reset( new sal_Char[ nTipBufSize ] ); ReadAlign( pS, pS->Tell() - nStartPos, 4 ); pS->Read( pTipName.get(), nTipBufSize ); diff --git a/main/filter/source/svg/svgwriter.cxx b/main/filter/source/svg/svgwriter.cxx index ff75e7c217..59659576ff 100644 --- a/main/filter/source/svg/svgwriter.cxx +++ b/main/filter/source/svg/svgwriter.cxx @@ -791,7 +791,7 @@ void SVGActionWriter::ImplWriteText( const Point& rPos, const String& rText, { sal_Int32 nLen = rText.Len(), i; Size aNormSize; - ::std::unique_ptr< sal_Int32 > apTmpArray; + ::std::unique_ptr< sal_Int32[] > apTmpArray; ::std::unique_ptr< SvXMLElementExport > apTransform; sal_Int32* pDX; Point aPos;
