summaryrefslogtreecommitdiffstats
path: root/src/xml/node-fns.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2008-09-23 23:34:58 +0000
committertweenk <tweenk@users.sourceforge.net>2008-09-23 23:34:58 +0000
commit3547b1082098934d583f2c483c8eb5a59e9c2bbb (patch)
treed62ab547cdc178ec6d4028d27aa6ba75714168c7 /src/xml/node-fns.cpp
parentadd a path parameter to doeffect_stack_test to test a bug + fix a stupid erro... (diff)
downloadinkscape-3547b1082098934d583f2c483c8eb5a59e9c2bbb.tar.gz
inkscape-3547b1082098934d583f2c483c8eb5a59e9c2bbb.zip
* Lots of documentation for the Inkscape::XML namespace
* Doxygen fixes for a few files * Garbage-collected allocator for STL containers (bzr r6877)
Diffstat (limited to 'src/xml/node-fns.cpp')
-rw-r--r--src/xml/node-fns.cpp21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/xml/node-fns.cpp b/src/xml/node-fns.cpp
index cb4161141..deb88fb5e 100644
--- a/src/xml/node-fns.cpp
+++ b/src/xml/node-fns.cpp
@@ -26,7 +26,7 @@ bool id_permitted_internal(GQuark qname) {
bool id_permitted_internal_memoized(GQuark qname) {
typedef std::map<GQuark, bool> IdPermittedMap;
- IdPermittedMap id_permitted_names;
+ static IdPermittedMap id_permitted_names;
IdPermittedMap::iterator found;
found = id_permitted_names.find(qname);
@@ -57,21 +57,7 @@ struct node_matches {
Node const &node;
};
-/** Returns the sibling before \a node in \a node's parent's children,
- * or NULL if \a node is the first of those children (or if child is
- * NULL or has no parent).
- *
- * Useful in combination with Node::addChild, when you want to insert
- * a new child _before_ a given existing child.
- *
- * Note: Involves a linear search (unlike next_node).
- *
- * \pre Links are correct, i.e. \a node isin its parent's children.
- *
- * \post (ret == NULL
- * ? node == NULL || node->parent() == NULL || node->parent()->firstChild() == node
- * : ret->next() == node).
- */
+// documentation moved to header
Node *previous_node(Node *node) {
using Inkscape::Algorithms::find_if_before;
@@ -93,7 +79,6 @@ Node *previous_node(Node *node) {
}
}
-
/*
Local Variables:
mode:c++
@@ -103,4 +88,4 @@ Node *previous_node(Node *node) {
fill-column:99
End:
*/
-// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :