From 4f46bb0e09ddfa540b60bd4d152385729127aceb Mon Sep 17 00:00:00 2001 From: MenTaLguY Date: Mon, 6 Feb 2006 04:15:05 +0000 Subject: replace Util::SharedCStringPtr with the more general Util::shared_ptr<> (bzr r87) --- src/xml/event.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/xml/event.cpp') diff --git a/src/xml/event.cpp b/src/xml/event.cpp index c9f0b50a7..dd7167874 100644 --- a/src/xml/event.cpp +++ b/src/xml/event.cpp @@ -114,15 +114,15 @@ public: } void notifyAttributeChanged(Node &node, GQuark name, - Inkscape::Util::SharedCStringPtr old_value, - Inkscape::Util::SharedCStringPtr new_value) + Inkscape::Util::shared_ptr old_value, + Inkscape::Util::shared_ptr new_value) { node.setAttribute(g_quark_to_string(name), new_value); } void notifyContentChanged(Node &node, - Inkscape::Util::SharedCStringPtr old_value, - Inkscape::Util::SharedCStringPtr new_value) + Inkscape::Util::shared_ptr old_value, + Inkscape::Util::shared_ptr new_value) { node.setContent(new_value); } @@ -458,22 +458,22 @@ public: } void notifyAttributeChanged(Node &node, GQuark name, - Inkscape::Util::SharedCStringPtr old_value, - Inkscape::Util::SharedCStringPtr new_value) + Inkscape::Util::shared_ptr old_value, + Inkscape::Util::shared_ptr new_value) { if (new_value) { - g_warning("Event: Set attribute %s to \"%s\" on %s", g_quark_to_string(name), new_value.cString(), node_to_string(node).c_str()); + g_warning("Event: Set attribute %s to \"%s\" on %s", g_quark_to_string(name), new_value.pointer(), node_to_string(node).c_str()); } else { g_warning("Event: Unset attribute %s on %s", g_quark_to_string(name), node_to_string(node).c_str()); } } void notifyContentChanged(Node &node, - Inkscape::Util::SharedCStringPtr old_value, - Inkscape::Util::SharedCStringPtr new_value) + Inkscape::Util::shared_ptr old_value, + Inkscape::Util::shared_ptr new_value) { if (new_value) { - g_warning("Event: Set content of %s to \"%s\"", node_to_string(node).c_str(), new_value.cString()); + g_warning("Event: Set content of %s to \"%s\"", node_to_string(node).c_str(), new_value.pointer()); } else { g_warning("Event: Unset content of %s", node_to_string(node).c_str()); } -- cgit v1.2.3