summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 69eaf3b)
raw | patch | inline | side by side (parent: 69eaf3b)
author | joncruz <joncruz@users.sourceforge.net> | |
Thu, 4 Dec 2008 07:33:30 +0000 (07:33 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Thu, 4 Dec 2008 07:33:30 +0000 (07:33 +0000) |
src/xml/node-observer.h | patch | blob | history |
index 8f317e2d0778b40b29cd956e8e2f83da31b7fd0e..fbbb049938957ad41e98a9548b37090393cdb3eb 100644 (file)
--- a/src/xml/node-observer.h
+++ b/src/xml/node-observer.h
#include "util/share.h"
#include "xml/xml-forward.h"
+#ifndef INK_UNUSED
+#define INK_UNUSED(x) ((void)(x))
+#endif // INK_UNUSED
namespace Inkscape {
namespace XML {
* @param child The newly added child node
* @param prev The node after which the new child was inserted into the sibling order, or NULL
*/
- virtual void notifyChildAdded(Node &node, Node &child, Node *prev) {}
+ virtual void notifyChildAdded(Node &node, Node &child, Node *prev) {
+ INK_UNUSED(node);
+ INK_UNUSED(child);
+ INK_UNUSED(prev);
+ }
/**
* @brief Child removal callback
* @param child The removed child node
* @param prev The node that was before the removed node in sibling order, or NULL
*/
- virtual void notifyChildRemoved(Node &node, Node &child, Node *prev) {}
+ virtual void notifyChildRemoved(Node &node, Node &child, Node *prev) {
+ INK_UNUSED(node);
+ INK_UNUSED(child);
+ INK_UNUSED(prev);
+ }
/**
* @brief Child order change callback
* @param new_prev The node that is before @c child after the order change
*/
virtual void notifyChildOrderChanged(Node &node, Node &child,
- Node *old_prev, Node *new_prev) {}
+ Node *old_prev, Node *new_prev) {
+ INK_UNUSED(node);
+ INK_UNUSED(child);
+ INK_UNUSED(old_prev);
+ INK_UNUSED(new_prev);
+ }
/**
* @brief Content change callback
*/
virtual void notifyContentChanged(Node &node,
Util::ptr_shared<char> old_content,
- Util::ptr_shared<char> new_content) {}
+ Util::ptr_shared<char> new_content) {
+ INK_UNUSED(node);
+ INK_UNUSED(old_content);
+ INK_UNUSED(new_content);
+ }
/**
* @brief Attribute change callback
*/
virtual void notifyAttributeChanged(Node &node, GQuark name,
Util::ptr_shared<char> old_value,
- Util::ptr_shared<char> new_value) {}
+ Util::ptr_shared<char> new_value) {
+ INK_UNUSED(node);
+ INK_UNUSED(name);
+ INK_UNUSED(old_value);
+ INK_UNUSED(new_value);
+ }
};
} // namespace XML