blob: da4374262d0dfb825b3b3cb00bcb405ab70211d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Node iterators
*
* Copyright (C) 2004 MenTaLguY
*/
#include "node-iterators.h"
#include "xml/node.h"
namespace Inkscape {
namespace XML {
Node const *NodeSiblingIteratorStrategy::next(Node const *node)
{
return node ? node->next() : nullptr;
}
Node const *NodeParentIteratorStrategy::next(Node const *node)
{
return node ? node->parent() : nullptr;
}
} // namespace XML
} // namespace Inkscape
// vim: expandtab:shiftwidth=4:softtabstop=4:fileencoding=utf-8:textwidth=99 :
|