Code

fix warnings
authorjohanengelen <johanengelen@users.sourceforge.net>
Fri, 29 Feb 2008 08:24:00 +0000 (08:24 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Fri, 29 Feb 2008 08:24:00 +0000 (08:24 +0000)
src/live_effects/lpe-curvestitch.cpp
src/live_effects/lpeobject.cpp
src/live_effects/lpeobject.h

index e72f1aac15026d7b57f63ca547c997f329b7849a..85d6e5e8fe892f6acabd6821a4150c6111bce002 100644 (file)
@@ -89,8 +89,8 @@ LPECurveStitch::doEffect_path (std::vector<Geom::Path> & path_in)
         std::vector<Geom::Path> 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<D2<SBasis> > A = arc_length_parametrization(Piecewise<D2<SBasis> >(path_in[ii].toPwSb()),2,.1);
             Piecewise<D2<SBasis> > B = arc_length_parametrization(Piecewise<D2<SBasis> >(path_in[jj].toPwSb()),2,.1);
index e7810fc28a81f0b6ccb6f8813c0df292ca8956c7..0a7fb5eb078eb946602c310bf48b9dc048ae3fd5 100644 (file)
@@ -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);
index ede645eea5ffaba295ebee08f39e99cd0ff3e35d..f141f07ca8cc87a333f8715738ce7fcceb7c739b 100644 (file)
@@ -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.