Code

Making it so that including simple-node.h will generate an error
authorTed Gould <ted@canonical.com>
Fri, 31 Oct 2008 21:31:40 +0000 (16:31 -0500)
committerTed Gould <ted@canonical.com>
Fri, 31 Oct 2008 21:31:40 +0000 (16:31 -0500)
src/conn-avoid-ref.cpp
src/extension/implementation/script.cpp
src/xml/simple-node.cpp
src/xml/simple-node.h

index ac9064713e07cf599f51fa827ffe2d935ee43973..34c839c6f04635cf85b4440d1df51a2979672b1f 100644 (file)
@@ -18,7 +18,7 @@
 #include "libavoid/polyutil.h"
 #include "libavoid/router.h"
 #include "libavoid/connector.h"
-#include "xml/simple-node.h"
+#include "xml/node.h"
 #include "document.h"
 #include "desktop.h"
 #include "desktop-handles.h"
index 964eb85d87d9b46a73fe7c9108885c1b863de449..70b006d310265ba5afd69fd274e2b0a69bc0e7a2 100644 (file)
@@ -38,6 +38,7 @@
 #include "dialogs/dialog-events.h"
 #include "application/application.h"
 #include "xml/node.h"
+#include "xml/attribute-record.h"
 
 #include "util/glib-list-iterators.h"
 
index 3cca393d228366d7b013d9109d7c207ebaddd85f..7ecdc1b8398b004a290fc60be21fa718e59c1290 100644 (file)
@@ -18,6 +18,7 @@
 #include <string>
 #include <glib/gstrfuncs.h>
 
+#include "xml/node.h"
 #include "xml/simple-node.h"
 #include "xml/node-event-vector.h"
 #include "xml/node-fns.h"
index 044068eb12171b18f3702a79eb4d01056535798a..67070d0fceb05db834f1639f4b3ee01d4d2b26ee 100644 (file)
  * See the file COPYING for details.
  */
 
+#ifndef SEEN_INKSCAPE_XML_NODE_H
+#error  You have included xml/simple-node.h in your document, which is an implementation.  Chances are that you want xml/node.h.  Please fix that.
+#endif
+
 #ifndef SEEN_INKSCAPE_XML_SIMPLE_NODE_H
 #define SEEN_INKSCAPE_XML_SIMPLE_NODE_H