From d05f5e48661e499738feca18812be9462f8fa73e Mon Sep 17 00:00:00 2001 From: johanengelen Date: Fri, 29 Feb 2008 08:24:00 +0000 Subject: [PATCH] fix warnings --- src/live_effects/lpe-curvestitch.cpp | 4 ++-- src/live_effects/lpeobject.cpp | 2 +- src/live_effects/lpeobject.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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. -- 2.30.2