office-gobmx/external/librevenge/C2039-unique-shared_ptr.patch.0
Xisco Fauli 49a0203e7a librevenge: upgrade to 0.0.5
* Add C2039-unique-shared_ptr.patch.0 to fix

C:/cygwin/home/tdf/lode/jenkins/workspace/gerrit_windows/workdir/UnpackedTarball/librevenge/src/lib/RVNGBinaryData.cpp(96): error C2039: 'unique': is not a member of 'std::shared_ptr<librevenge::`anonymous-namespace'::DataImpl>'
C:/cygwin/home/tdf/lode/jenkins/workspace/gerrit_windows/workdir/UnpackedTarball/librevenge/src/lib/RVNGBinaryData.cpp(86): note: see declaration of 'std::shared_ptr<librevenge::`anonymous-namespace'::DataImpl>'
make[1]: *** [C:/cygwin/home/tdf/lode/jenkins/workspace/gerrit_windows/solenv/gbuild/LinkTarget.mk:398: C:/cygwin/home/tdf/lode/jenkins/workspace/gerrit_windows/workdir/GenCxxObject/UnpackedTarball/librevenge/src/lib/RVNGBinaryData.o] Error 2

on Windows

Change-Id: I31023633426fc902e2298c696826d8371bb4d63b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167388
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-05-10 15:27:16 +02:00

11 lines
336 B
Text

--- src/lib/RVNGBinaryData.cpp 2024-05-10 13:20:09.278288686 +0200
+++ src/lib/RVNGBinaryData.cpp 2024-05-10 13:23:14.365139906 +0200
@@ -93,7 +93,7 @@
void RVNGBinaryDataImpl::makeUnique()
{
- if (!m_ptr.unique())
+ if (!(m_ptr.use_count() == 1))
{
std::shared_ptr<DataImpl> ptr(new DataImpl());
ptr->m_buf = m_ptr->m_buf;