Ticket #13741: patch-uf_gtk.cc

File patch-uf_gtk.cc, 699 bytes (added by frank.mcpherson@…, 17 years ago)
Line 
1--- uf_gtk.cc-dist      2007-12-28 09:01:39.000000000 -0500
2+++ uf_gtk.cc   2007-12-28 09:06:34.000000000 -0500
3@@ -117,8 +117,7 @@
4 static OSErr _uf_lcms_flatten_profile(SInt32  command,
5     SInt32 *size, void *data, void *refCon)
6 {
7-    ProfileTransfer *transfer = refCon;
8-
9+       ProfileTransfer *transfer = static_cast<ProfileTransfer*>(refCon);
10     switch (command)
11     {
12     case openWriteSpool:
13@@ -126,7 +125,7 @@
14        break;
15 
16     case writeSpool:
17-       transfer->data = g_realloc(transfer->data, transfer->len + *size);
18+       transfer->data = static_cast<guchar*>(g_realloc(transfer->data, transfer->len + *size));
19        memcpy(transfer->data + transfer->len, data, *size);
20        transfer->len += *size;
21        break;