Code

fix a couple of g++-4.3 compile errors.
authorpjrm <pjrm@users.sourceforge.net>
Thu, 24 Apr 2008 03:05:56 +0000 (03:05 +0000)
committerpjrm <pjrm@users.sourceforge.net>
Thu, 24 Apr 2008 03:05:56 +0000 (03:05 +0000)
src/live_effects/lpe-test-doEffect-stack.cpp
src/sp-lpe-item.cpp

index cafe693b74210dc0882c9f81733c0c7f31196aee..3aa1436322967a3aaa2b1929d36686f5145eef82 100644 (file)
@@ -11,6 +11,8 @@
 #include <2geom/piecewise.h>
 #include <vector>
 #include <libnr/n-art-bpath.h>
+#include <cstring>
+using std::memcpy;
 
 namespace Inkscape {
 namespace LivePathEffect {
index 78055eb9cb99b18e5d40bd237bab8e52dd4fb3a2..eaf92704c4aaa856e5a2f64c8d43494a709c4309 100644 (file)
@@ -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) {