summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2008-07-07 20:23:57 +0000
committerjohanengelen <johanengelen@users.sourceforge.net>2008-07-07 20:23:57 +0000
commit755f2f762f364c864fa5fb2410a800d48dc23485 (patch)
treea259a95e5e6d3f4ab79fe9e8dc001f97dd183f8c /src/xml
parentcleanup unused methods in spcurve (diff)
downloadinkscape-755f2f762f364c864fa5fb2410a800d48dc23485.tar.gz
inkscape-755f2f762f364c864fa5fb2410a800d48dc23485.zip
replace separate forward declarations by proper forward.h inclusion
(bzr r6214)
Diffstat (limited to 'src/xml')
-rw-r--r--src/xml/repr-util.cpp4
-rw-r--r--src/xml/repr.h8
2 files changed, 4 insertions, 8 deletions
diff --git a/src/xml/repr-util.cpp b/src/xml/repr-util.cpp
index 193c1125c..59563a7fc 100644
--- a/src/xml/repr-util.cpp
+++ b/src/xml/repr-util.cpp
@@ -29,7 +29,7 @@
#include <glib.h>
-
+#include <2geom/point.h>
#include "svg/stringstream.h"
#include "svg/css-ostringstream.h"
@@ -592,7 +592,7 @@ sp_repr_set_svg_double(Inkscape::XML::Node *repr, gchar const *key, double val)
return true;
}
-unsigned sp_repr_set_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point val)
+unsigned sp_repr_set_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point const & val)
{
g_return_val_if_fail(repr != NULL, FALSE);
g_return_val_if_fail(key != NULL, FALSE);
diff --git a/src/xml/repr.h b/src/xml/repr.h
index f0a1dbeb6..a16a3c4f4 100644
--- a/src/xml/repr.h
+++ b/src/xml/repr.h
@@ -22,7 +22,7 @@
#include "xml/sp-css-attr.h"
#include "io/inkscapestream.h"
-#include <2geom/point.h>
+#include <2geom/forward.h>
#define SP_SODIPODI_NS_URI "http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
#define SP_BROKEN_SODIPODI_NS_URI "http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd"
@@ -130,10 +130,6 @@
* Kees Cook 2004-07-01, updated MenTaLguY 2005-01-25
*/
-namespace Geom {
-class Point;
-}
-
/* SPXMLNs */
char const *sp_xml_ns_uri_prefix(gchar const *uri, gchar const *suggested);
char const *sp_xml_ns_prefix_uri(gchar const *prefix);
@@ -221,7 +217,7 @@ unsigned sp_repr_set_boolean(Inkscape::XML::Node *repr, gchar const *key, unsign
unsigned sp_repr_set_int(Inkscape::XML::Node *repr, gchar const *key, int val);
unsigned sp_repr_set_css_double(Inkscape::XML::Node *repr, gchar const *key, double val);
unsigned sp_repr_set_svg_double(Inkscape::XML::Node *repr, gchar const *key, double val);
-unsigned sp_repr_set_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point val);
+unsigned sp_repr_set_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point const & val);
unsigned sp_repr_get_point(Inkscape::XML::Node *repr, gchar const *key, Geom::Point *val);
/// \deprecated !