[PATCH 1/2] Fixed non compiling code in bridge.cs
Joshua Ismael Haase Hernández
hahj87 at gmail.com
Thu Oct 28 18:42:30 PDT 2010
---
scratch/mono-uno-bridge/bridge.cs | 17 -----------------
1 files changed, 0 insertions(+), 17 deletions(-)
diff --git a/scratch/mono-uno-bridge/bridge.cs b/scratch/mono-uno-bridge/bridge.cs
index 840493f..caef36e 100644
--- a/scratch/mono-uno-bridge/bridge.cs
+++ b/scratch/mono-uno-bridge/bridge.cs
@@ -487,11 +487,6 @@ public unsafe class Bridge
seq = SequencePtr.Allocate(length, sizeof(ushort));
Marshal.Copy((char [])managedData, 0, seq.elementsPtr, length);
break;
-/* case TypeClass.BOOLEAN:
- // FIXME bool vs. byte ???
- seq = SequencePtr.Allocate(length, sizeof(byte));
- Marshal.Copy((byte [])managedData, 0, seq.elementsPtr, length);
- break;*/
case TypeClass.BYTE:
seq = SequencePtr.Allocate(length, sizeof(byte));
Marshal.Copy((byte [])managedData, 0, seq.elementsPtr, length);
@@ -500,26 +495,14 @@ public unsafe class Bridge
seq = SequencePtr.Allocate(length, sizeof(short));
Marshal.Copy((short [])managedData, 0, seq.elementsPtr, length);
break;
-/* case TypeClass.UNSIGNED_SHORT:
- seq = SequencePtr.Allocate(length, sizeof(ushort));
- Marshal.Copy((short [])managedData, 0, seq.elementsPtr, length);
- break; */
case TypeClass.LONG:
seq = SequencePtr.Allocate(length, sizeof(int));
Marshal.Copy((int [])managedData, 0, seq.elementsPtr, length);
break;
-/* case TypeClass.UNSIGNED_LONG:
- seq = SequencePtr.Allocate(length, sizeof(uint));
- Marshal.Copy((int [])managedData, 0, seq.elementsPtr, length);
- break; */
case TypeClass.HYPER:
seq = SequencePtr.Allocate(length, sizeof(long));
Marshal.Copy((long [])managedData, 0, seq.elementsPtr, length);
break;
-/* case TypeClass.UNSIGNED_HYPER:
- seq = SequencePtr.Allocate(length, sizeof(ulong));
- Marshal.Copy((long [])managedData, 0, seq.elementsPtr, length);
- break; */
case TypeClass.FLOAT:
seq = SequencePtr.Allocate(length, sizeof(float));
Marshal.Copy((float [])managedData, 0, seq.elementsPtr, length);
--
1.7.3.2
--------------010400020609020500080904
Content-Type: text/plain;
name="0002-fix-non-compiling-code-on-mono-uno-bridge.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0002-fix-non-compiling-code-on-mono-uno-bridge.patch"
More information about the LibreOffice
mailing list