From bb4d6a0d89b47d7f6b07507b839e69f780abcf37 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 12 Sep 2012 15:46:26 +0300 Subject: [PATCH] Make it compile for iOS device, no idea whether it works Change-Id: I56fdc4894347d9cce4d3b932d3b8740fcb4ef8b7 --- bridges/source/cpp_uno/gcc3_ios_arm/cpp2uno.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bridges/source/cpp_uno/gcc3_ios_arm/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_ios_arm/cpp2uno.cxx index 9e6fba0dfc50..f53bddd29bf4 100644 --- a/bridges/source/cpp_uno/gcc3_ios_arm/cpp2uno.cxx +++ b/bridges/source/cpp_uno/gcc3_ios_arm/cpp2uno.cxx @@ -462,7 +462,8 @@ sal_Size bridges::cpp_uno::shared::VtableFactory::getBlockSize( sal_Int32 slotCount) { #ifdef __arm - ??? + // ??? + return (slotCount + 2) * sizeof (Slot); #else return (slotCount + 2) * sizeof (Slot); #endif @@ -491,6 +492,7 @@ unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions( OSL_ASSERT(member != 0); switch (member->eTypeClass) { case typelib_TypeClass_INTERFACE_ATTRIBUTE: + { #ifdef __arm typelib_InterfaceAttributeTypeDescription *pAttrTD = reinterpret_cast( member ); @@ -520,8 +522,9 @@ unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions( ); } break; - + } case typelib_TypeClass_INTERFACE_METHOD: + { #ifdef __arm typelib_InterfaceMethodTypeDescription *pMethodTD = reinterpret_cast< @@ -537,7 +540,7 @@ unsigned char * bridges::cpp_uno::shared::VtableFactory::addLocalFunctions( #endif ); break; - + } default: OSL_ASSERT(false); break;