summaryrefslogtreecommitdiffstats
path: root/src/gradient-chemistry.cpp
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-04 01:45:44 +0000
committerCampbell Barton <ideasman42@gmail.com>2012-10-04 01:45:44 +0000
commit370a3f5cc9e39352a081e5d5dd8c43676547a6e6 (patch)
tree3e7b18853b1902c189a5d1972db490c561b0b538 /src/gradient-chemistry.cpp
parentextensions. Extrude. allow selection of multiple objects (Bug 1055155) (diff)
downloadinkscape-370a3f5cc9e39352a081e5d5dd8c43676547a6e6.tar.gz
inkscape-370a3f5cc9e39352a081e5d5dd8c43676547a6e6.zip
code cleanup: add own includes to cpp files or make the functions static if they are not used elsewhere.
(bzr r11735)
Diffstat (limited to 'src/gradient-chemistry.cpp')
-rw-r--r--src/gradient-chemistry.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gradient-chemistry.cpp b/src/gradient-chemistry.cpp
index ed4e81f0d..0038e9325 100644
--- a/src/gradient-chemistry.cpp
+++ b/src/gradient-chemistry.cpp
@@ -42,6 +42,7 @@
#include "sp-stop.h"
#include "widgets/gradient-vector.h"
#include "gradient-drag.h"
+#include "gradient-chemistry.h"
#include "sp-text.h"
#include "sp-tspan.h"
@@ -173,7 +174,7 @@ static SPGradient *sp_gradient_get_private_normalized(SPDocument *document, SPGr
/**
Count how many times gr is used by the styles of o and its descendants
*/
-guint count_gradient_hrefs(SPObject *o, SPGradient *gr)
+static guint count_gradient_hrefs(SPObject *o, SPGradient *gr)
{
if (!o)
return 1;
@@ -207,8 +208,8 @@ guint count_gradient_hrefs(SPObject *o, SPGradient *gr)
/**
* If gr has other users, create a new private; also check if gr links to vector, relink if not
*/
-SPGradient *sp_gradient_fork_private_if_necessary(SPGradient *gr, SPGradient *vector,
- SPGradientType type, SPObject *o)
+static SPGradient *sp_gradient_fork_private_if_necessary(SPGradient *gr, SPGradient *vector,
+ SPGradientType type, SPObject *o)
{
#ifdef SP_GR_VERBOSE
g_message("sp_gradient_fork_private_if_necessary(%p, %p, %d, %p)", gr, vector, type, o);