summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-10-04 02:30:12 +0000
committerCampbell Barton <ideasman42@gmail.com>2012-10-04 02:30:12 +0000
commitaca1914d674a5e81234208248e3c8515a60dd19d (patch)
tree6b5aad94dc60e62e571cddc482528f62180e2981 /src/xml
parentcode cleanup: make more functions static or include their own headers. (diff)
downloadinkscape-aca1914d674a5e81234208248e3c8515a60dd19d.tar.gz
inkscape-aca1914d674a5e81234208248e3c8515a60dd19d.zip
code cleanup: make more functions static, add includes.
(bzr r11737)
Diffstat (limited to 'src/xml')
-rw-r--r--src/xml/node-fns.cpp1
-rw-r--r--src/xml/repr-sorting.cpp1
-rw-r--r--src/xml/repr-util.cpp2
3 files changed, 3 insertions, 1 deletions
diff --git a/src/xml/node-fns.cpp b/src/xml/node-fns.cpp
index 20e9fbc38..eb3870978 100644
--- a/src/xml/node-fns.cpp
+++ b/src/xml/node-fns.cpp
@@ -9,6 +9,7 @@
#include "xml/node-iterators.h"
#include "util/find-if-before.h"
+#include "node-fns.h"
namespace Inkscape {
namespace XML {
diff --git a/src/xml/repr-sorting.cpp b/src/xml/repr-sorting.cpp
index fd485925b..09a39acb2 100644
--- a/src/xml/repr-sorting.cpp
+++ b/src/xml/repr-sorting.cpp
@@ -2,6 +2,7 @@
#include "util/longest-common-suffix.h"
#include "xml/repr.h"
#include "xml/node-iterators.h"
+#include "repr-sorting.h"
static bool same_repr(Inkscape::XML::Node const &a, Inkscape::XML::Node const &b)
{
diff --git a/src/xml/repr-util.cpp b/src/xml/repr-util.cpp
index 5b8ab12ae..7e9f9c484 100644
--- a/src/xml/repr-util.cpp
+++ b/src/xml/repr-util.cpp
@@ -75,7 +75,7 @@ static char *sp_xml_ns_auto_prefix(char const *uri);
/**
* Locale-independent double to string conversion
*/
-unsigned int sp_xml_dtoa(gchar *buf, double val, unsigned int tprec, unsigned int fprec, unsigned int padf)
+static unsigned int sp_xml_dtoa(gchar *buf, double val, unsigned int tprec, unsigned int fprec, unsigned int padf)
{
double dival, fval, epsilon;
int idigits, ival, i;