From 4ddc5ae5a40c90607ca4ea4a9beab40f9c2715da Mon Sep 17 00:00:00 2001 From: pjrm Date: Thu, 24 Apr 2008 03:05:56 +0000 Subject: [PATCH] fix a couple of g++-4.3 compile errors. --- src/live_effects/lpe-test-doEffect-stack.cpp | 2 ++ src/sp-lpe-item.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/live_effects/lpe-test-doEffect-stack.cpp b/src/live_effects/lpe-test-doEffect-stack.cpp index cafe693b7..3aa143632 100644 --- a/src/live_effects/lpe-test-doEffect-stack.cpp +++ b/src/live_effects/lpe-test-doEffect-stack.cpp @@ -11,6 +11,8 @@ #include <2geom/piecewise.h> #include #include +#include +using std::memcpy; namespace Inkscape { namespace LivePathEffect { diff --git a/src/sp-lpe-item.cpp b/src/sp-lpe-item.cpp index 78055eb9c..eaf92704c 100644 --- a/src/sp-lpe-item.cpp +++ b/src/sp-lpe-item.cpp @@ -23,6 +23,7 @@ #include "sp-path.h" #include "sp-item-group.h" +#include "streq.h" #include "macros.h" #include "attributes.h" #include "sp-lpe-item.h" @@ -159,7 +160,7 @@ sp_lpe_item_set(SPObject *object, unsigned int key, gchar const *value) switch (key) { case SP_ATTR_INKSCAPE_PATH_EFFECT: if ( value && lpeitem->path_effect_ref->lpeobject_href - && ( strcmp(value, lpeitem->path_effect_ref->lpeobject_href) == 0 ) ) { + && streq(value, lpeitem->path_effect_ref->lpeobject_href) ) { /* No change, do nothing. */ } else { if (value) { -- 2.30.2