From 8476924574b4e7f173f580099b507a0e410ec7d6 Mon Sep 17 00:00:00 2001 From: scislac Date: Thu, 7 May 2009 01:22:33 +0000 Subject: [PATCH] Patch 337357 by Lubomir Rintel: GCC 4.4 compilation & start fix (woohoo, happy on Karmic now) --- src/extension/internal/bitmap/imagemagick.cpp | 2 +- src/libnr/nr-object.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extension/internal/bitmap/imagemagick.cpp b/src/extension/internal/bitmap/imagemagick.cpp index 402e0c973..f86d0ec42 100644 --- a/src/extension/internal/bitmap/imagemagick.cpp +++ b/src/extension/internal/bitmap/imagemagick.cpp @@ -114,7 +114,7 @@ ImageMagickDocCache::readImage(const char *xlink, Magick::Image *image) char *search = (char *) g_strndup(xlink, 30); if (strstr(search, "base64") != (char*)NULL) { // 7 = strlen("base64") + strlen(",") - char* pureBase64 = strstr(xlink, "base64") + 7; + const char* pureBase64 = strstr(xlink, "base64") + 7; Magick::Blob blob; blob.base64(pureBase64); image->read(blob); diff --git a/src/libnr/nr-object.cpp b/src/libnr/nr-object.cpp index 7ecdd75c3..d92052d10 100644 --- a/src/libnr/nr-object.cpp +++ b/src/libnr/nr-object.cpp @@ -198,8 +198,8 @@ NRObject *NRObject::alloc(NRType type) ); memset(object, 0xf0, c->isize); - object->klass = c; c->cpp_ctor(object); + object->klass = c; nr_class_tree_object_invoke_init (c, object); return object; -- 2.30.2