From 755f2f762f364c864fa5fb2410a800d48dc23485 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Mon, 7 Jul 2008 20:23:57 +0000 Subject: replace separate forward declarations by proper forward.h inclusion (bzr r6214) --- src/xml/repr-util.cpp | 4 ++-- src/xml/repr.h | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'src/xml') 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 - +#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 ! -- cgit v1.2.3