summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2008-12-04 07:33:30 +0000
committerjoncruz <joncruz@users.sourceforge.net>2008-12-04 07:33:30 +0000
commit78a5de0af0a50d23ba4aa1d43ce54efae1cdfb68 (patch)
treef91ed42c0b772d7d3b6d7ea7541fb31cb332898a /src/xml
parentFixed missing EOL at end of file. (diff)
downloadinkscape-78a5de0af0a50d23ba4aa1d43ce54efae1cdfb68.tar.gz
inkscape-78a5de0af0a50d23ba4aa1d43ce54efae1cdfb68.zip
Warning cleanup.
(bzr r6938)
Diffstat (limited to 'src/xml')
-rw-r--r--src/xml/node-observer.h35
1 files changed, 30 insertions, 5 deletions
diff --git a/src/xml/node-observer.h b/src/xml/node-observer.h
index 8f317e2d0..fbbb04993 100644
--- a/src/xml/node-observer.h
+++ b/src/xml/node-observer.h
@@ -22,6 +22,9 @@
#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 {
@@ -61,7 +64,11 @@ public:
* @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
@@ -73,7 +80,11 @@ public:
* @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
@@ -89,7 +100,12 @@ public:
* @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
@@ -103,7 +119,11 @@ public:
*/
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
@@ -117,7 +137,12 @@ public:
*/
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