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

asf-gitbox-commits pushed a commit to branch compilers-101
in repository https://gitbox.apache.org/repos/asf/openoffice.git


The following commit(s) were added to refs/heads/compilers-101 by this push:
     new 65b41a2925 Fix C++17 build failures on FreeBSD (round 2)
65b41a2925 is described below

commit 65b41a292538d9288af9bd3d2512d9ed87cd827f
Author: Pedro F. Giffuni <[email protected]>
AuthorDate: Fri Nov 6 21:43:38 2026 -0500

    Fix C++17 build failures on FreeBSD (round 2)
    
    - stoc/source/security/access_controller.cxx:
      Replace auto_ptr<t_rec_vec> with std::unique_ptr<t_rec_vec> (auto_ptr 
removed in C++17)
    - basegfx/test/basegfx2d.cxx:
      Replace .head on std::tuple with std::get<0>() (Boost.Tuple -> std::tuple)
    - basegfx/test/boxclipper.cxx:
      Replace .head with std::get<0>() and .tail.head with std::get<1>()
---
 main/basegfx/test/basegfx2d.cxx                 | 4 ++--
 main/basegfx/test/boxclipper.cxx                | 4 ++--
 main/stoc/source/security/access_controller.cxx | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/main/basegfx/test/basegfx2d.cxx b/main/basegfx/test/basegfx2d.cxx
index dcc946b09f..397baf2d33 100644
--- a/main/basegfx/test/basegfx2d.cxx
+++ b/main/basegfx/test/basegfx2d.cxx
@@ -266,8 +266,8 @@ TEST_F(b2dpolyrange, check)
     aRange.appendElement(B2DRange(2,2,3,3),ORIENTATION_POSITIVE);
 
     ASSERT_TRUE(aRange.count() == 2) << "simple poly range - count";
-    ASSERT_TRUE(aRange.getElement(0).head == B2DRange(0,0,1,1)) << "simple 
poly range - first element";
-    ASSERT_TRUE(aRange.getElement(1).head == B2DRange(2,2,3,3)) << "simple 
poly range - second element";
+    ASSERT_TRUE(std::get<0>(aRange.getElement(0)) == B2DRange(0,0,1,1)) << 
"simple poly range - first element";
+    ASSERT_TRUE(std::get<0>(aRange.getElement(1)) == B2DRange(2,2,3,3)) << 
"simple poly range - second element";
 
     // B2DPolyRange relies on correctly orientated rects
     const B2DRange aRect(0,0,1,1);
diff --git a/main/basegfx/test/boxclipper.cxx b/main/basegfx/test/boxclipper.cxx
index 99c16585d4..b303ca97a3 100644
--- a/main/basegfx/test/boxclipper.cxx
+++ b/main/basegfx/test/boxclipper.cxx
@@ -257,8 +257,8 @@ public:
         for( sal_uInt32 i=0; i<nCount; ++i )
         {
             B2DPolygon aRect=tools::createPolygonFromRect(
-                rRange.getElement(i).head);
-            if( rRange.getElement(i).tail.head == ORIENTATION_NEGATIVE )
+                std::get<0>(rRange.getElement(i)));
+            if( std::get<1>(rRange.getElement(i)) == ORIENTATION_NEGATIVE )
                 aRect.flip();
 
             genericClip.append(aRect);
diff --git a/main/stoc/source/security/access_controller.cxx 
b/main/stoc/source/security/access_controller.cxx
index 92c6fa3212..7c804afa97 100644
--- a/main/stoc/source/security/access_controller.cxx
+++ b/main/stoc/source/security/access_controller.cxx
@@ -612,7 +612,7 @@ inline void AccessController::clearPostPoned() SAL_THROW( 
() )
 void AccessController::checkAndClearPostPoned()
 {
     // check postponed permissions
-    auto_ptr< t_rec_vec > rec( reinterpret_cast< t_rec_vec * >( 
m_rec.getData() ) );
+    std::unique_ptr< t_rec_vec > rec( reinterpret_cast< t_rec_vec * >( 
m_rec.getData() ) );
     m_rec.setData( 0 ); // takeover ownership
     OSL_ASSERT( rec.get() );
     if (rec.get())

Reply via email to