summaryrefslogtreecommitdiffstats
path: root/src/live_effects/lpe-knot.cpp
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-04 01:47:32 +0000
committerCampbell Barton <ideasman42@gmail.com>2012-10-04 01:47:32 +0000
commit864134765a33823e2040c012ec383bebd7dd5743 (patch)
treec96543a601418602694e3222b11151264e52d96a /src/live_effects/lpe-knot.cpp
parentcode cleanup: add own includes to cpp files or make the functions static if t... (diff)
downloadinkscape-864134765a33823e2040c012ec383bebd7dd5743.tar.gz
inkscape-864134765a33823e2040c012ec383bebd7dd5743.zip
code cleanup: make more functions static or include their own headers.
(bzr r11736)
Diffstat (limited to 'src/live_effects/lpe-knot.cpp')
-rw-r--r--src/live_effects/lpe-knot.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/live_effects/lpe-knot.cpp b/src/live_effects/lpe-knot.cpp
index d3dd10d26..746dbbb7a 100644
--- a/src/live_effects/lpe-knot.cpp
+++ b/src/live_effects/lpe-knot.cpp
@@ -51,7 +51,7 @@ public:
};
-Geom::Path::size_type size_nondegenerate(Geom::Path const &path) {
+static Geom::Path::size_type size_nondegenerate(Geom::Path const &path) {
Geom::Path::size_type retval = path.size_open();
// if path is closed and closing segment is not degenerate
@@ -283,7 +283,7 @@ CrossingPoints::get(unsigned const i, unsigned const ni)
return CrossingPoint();
}
-unsigned
+static unsigned
idx_of_nearest(CrossingPoints const &cpts, Geom::Point const &p)
{
double dist=-1;
@@ -500,7 +500,8 @@ LPEKnot::doEffect_path (std::vector<Geom::Path> const &path_in)
//recursively collect gpaths and stroke widths (stolen from "sp-lpe_item.cpp").
-void collectPathsAndWidths (SPLPEItem const *lpeitem, std::vector<Geom::Path> &paths, std::vector<double> &stroke_widths){
+static void
+collectPathsAndWidths (SPLPEItem const *lpeitem, std::vector<Geom::Path> &paths, std::vector<double> &stroke_widths){
if (SP_IS_GROUP(lpeitem)) {
GSList const *item_list = sp_item_group_item_list(SP_GROUP(lpeitem));
for ( GSList const *iter = item_list; iter; iter = iter->next ) {