Avoid-std-shared_ptr-T-unique.patch (849B)
1 https://gitlab.com/inkscape/lib2geom/-/issues/74 2 https://gitlab.com/inkscape/lib2geom/-/commit/9b1ff56ae90db7fbbceebaac3ccf521f6ceb32f4 3 4 --- 5 src/3rdparty/2geom/include/2geom/path.h | 2 +- 6 1 file changed, 1 insertion(+), 1 deletion(-) 7 8 diff --git a/src/3rdparty/2geom/include/2geom/path.h b/src/3rdparty/2geom/include/2geom/path.h 9 index f3042d7..f6fb759 100644 10 --- a/src/3rdparty/2geom/include/2geom/path.h 11 +++ b/src/3rdparty/2geom/include/2geom/path.h 12 @@ -843,7 +843,7 @@ private: 13 void _unshare() { 14 // Called before every mutation. 15 // Ensure we have our own copy of curve data and reset cached values 16 - if (!_data.unique()) { 17 + if (_data.use_count() != 1) { 18 _data.reset(new PathData(*_data)); 19 _closing_seg = static_cast<ClosingSegment*>(&_data->curves.back()); 20 } 21 -- 22 2.45.2 23