[PATCH] fdo#61503 fix cli_cppuhelper bootstrap error

Peter Foley (via Code Review) gerrit at gerrit.libreoffice.org
Wed Apr 24 14:28:07 PDT 2013


Hi,

I have submitted a patch for review:

    https://gerrit.libreoffice.org/3600

To pull it, you can do:

    git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/00/3600/1

fdo#61503 fix cli_cppuhelper bootstrap error

Change-Id: I777d2d866cfc8b2363b418fd5cba6576e3a2b8ec
---
M cli_ure/source/native/native_share.h
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/cli_ure/source/native/native_share.h b/cli_ure/source/native/native_share.h
index 3c37f6c..700577f 100644
--- a/cli_ure/source/native/native_share.h
+++ b/cli_ure/source/native/native_share.h
@@ -62,7 +62,7 @@
     intptr_t intptr =
         reinterpret_cast< intptr_t >(
             mapping.mapInterface( x.get(), ::getCppuType( &x ) ) );
-    ::System::Runtime::InteropServices::GCHandle ^ handle = (::System::Runtime::InteropServices::GCHandle ^)(gcnew ::System::IntPtr(intptr));
+    ::System::Runtime::InteropServices::GCHandle ^ handle = ::System::Runtime::InteropServices::GCHandle::FromIntPtr(gcnew ::System::IntPtr(intptr));
     ::System::Object ^ ret = handle->Target;
     handle->Free();
     return ret;

-- 
To view, visit https://gerrit.libreoffice.org/3600
To unsubscribe, visit https://gerrit.libreoffice.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I777d2d866cfc8b2363b418fd5cba6576e3a2b8ec
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: master
Gerrit-Owner: Peter Foley <pefoley2 at verizon.net>



More information about the LibreOffice mailing list