diff options
| author | MenTaLguY <mental@rydia.net> | 2006-02-06 04:15:05 +0000 |
|---|---|---|
| committer | mental <mental@users.sourceforge.net> | 2006-02-06 04:15:05 +0000 |
| commit | 4f46bb0e09ddfa540b60bd4d152385729127aceb (patch) | |
| tree | 7b30dc6f0d64d847c422352d23ef1187ec04802a /src/xml/event.cpp | |
| parent | silence warnings (diff) | |
| download | inkscape-4f46bb0e09ddfa540b60bd4d152385729127aceb.tar.gz inkscape-4f46bb0e09ddfa540b60bd4d152385729127aceb.zip | |
replace Util::SharedCStringPtr with the more general Util::shared_ptr<>
(bzr r87)
Diffstat (limited to 'src/xml/event.cpp')
| -rw-r--r-- | src/xml/event.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
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<char> old_value, + Inkscape::Util::shared_ptr<char> 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<char> old_value, + Inkscape::Util::shared_ptr<char> 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<char> old_value, + Inkscape::Util::shared_ptr<char> 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<char> old_value, + Inkscape::Util::shared_ptr<char> 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()); } |
