From 8aeeed9090214715220c040f8efa06d73957e5f5 Mon Sep 17 00:00:00 2001 From: "Jon A. Cruz" Date: Wed, 24 Feb 2010 22:01:43 -0800 Subject: [PATCH] Warning cleanup. --- src/ui/tool/node.cpp | 2 +- src/ui/tool/path-manipulator.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ui/tool/node.cpp b/src/ui/tool/node.cpp index 865d65386..ae924f694 100644 --- a/src/ui/tool/node.cpp +++ b/src/ui/tool/node.cpp @@ -1218,7 +1218,7 @@ void NodeList::splice(iterator pos, NodeList &list, iterator i) splice(pos, list, i, j); } -void NodeList::splice(iterator pos, NodeList &list, iterator first, iterator last) +void NodeList::splice(iterator pos, NodeList &/*list*/, iterator first, iterator last) { ListNode *ins_beg = first._node, *ins_end = last._node, *at = pos._node; for (ListNode *ln = ins_beg; ln != ins_end; ln = ln->next) { diff --git a/src/ui/tool/path-manipulator.cpp b/src/ui/tool/path-manipulator.cpp index 82fe53440..0b0254108 100644 --- a/src/ui/tool/path-manipulator.cpp +++ b/src/ui/tool/path-manipulator.cpp @@ -66,11 +66,13 @@ public: Inkscape::GC::anchor(_node); _node->addObserver(*this); } + ~PathManipulatorObserver() { _node->removeObserver(*this); Inkscape::GC::release(_node); } - virtual void notifyAttributeChanged(Inkscape::XML::Node &node, GQuark attr, + + virtual void notifyAttributeChanged(Inkscape::XML::Node &/*node*/, GQuark attr, Util::ptr_shared, Util::ptr_shared) { // do nothing if blocked @@ -87,6 +89,7 @@ public: _pm->_externalChange(PATH_CHANGE_TRANSFORM); } } + void block() { _blocked = true; } void unblock() { _blocked = false; } private: -- 2.30.2