From: johanengelen Date: Fri, 29 Feb 2008 08:24:00 +0000 (+0000) Subject: fix warnings X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d05f5e48661e499738feca18812be9462f8fa73e;p=inkscape.git fix warnings --- diff --git a/src/live_effects/lpe-curvestitch.cpp b/src/live_effects/lpe-curvestitch.cpp index e72f1aac1..85d6e5e8f 100644 --- a/src/live_effects/lpe-curvestitch.cpp +++ b/src/live_effects/lpe-curvestitch.cpp @@ -89,8 +89,8 @@ LPECurveStitch::doEffect_path (std::vector & path_in) std::vector path_out; // do this for all permutations (ii,jj) if there are more than 2 paths? realllly cool! - for (int ii = 0 ; ii < path_in.size() - 1; ii++) - for (int jj = ii+1; jj < path_in.size(); jj++) + for (unsigned ii = 0 ; ii < path_in.size() - 1; ii++) + for (unsigned jj = ii+1; jj < path_in.size(); jj++) { Piecewise > A = arc_length_parametrization(Piecewise >(path_in[ii].toPwSb()),2,.1); Piecewise > B = arc_length_parametrization(Piecewise >(path_in[jj].toPwSb()),2,.1); diff --git a/src/live_effects/lpeobject.cpp b/src/live_effects/lpeobject.cpp index e7810fc28..0a7fb5eb0 100644 --- a/src/live_effects/lpeobject.cpp +++ b/src/live_effects/lpeobject.cpp @@ -256,7 +256,7 @@ livepatheffect_on_repr_attr_changed ( Inkscape::XML::Node * /*repr*/, * returns 'this' when no forking was necessary (and therefore no duplicate was made) */ LivePathEffectObject * -LivePathEffectObject::fork_private_if_necessary(int nr_of_allowed_users) +LivePathEffectObject::fork_private_if_necessary(unsigned int nr_of_allowed_users) { if (SP_OBJECT_HREFCOUNT(this) > nr_of_allowed_users) { SPDocument *doc = SP_OBJECT_DOCUMENT(this); diff --git a/src/live_effects/lpeobject.h b/src/live_effects/lpeobject.h index ede645eea..f141f07ca 100644 --- a/src/live_effects/lpeobject.h +++ b/src/live_effects/lpeobject.h @@ -23,7 +23,7 @@ public: bool effecttype_set; - LivePathEffectObject * fork_private_if_necessary(int nr_of_allowed_users = 1); + LivePathEffectObject * fork_private_if_necessary(unsigned int nr_of_allowed_users = 1); }; /// The LivePathEffect vtable.