From 258914e0577cd0d556abe2356be908b513a3b876 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 23 Jan 2019 05:24:00 +0100 Subject: Event: Switch all call sites from Util::ptr_shared to char const* or std::shared_ptr. --- src/document-undo.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'src/document-undo.cpp') diff --git a/src/document-undo.cpp b/src/document-undo.cpp index d41771f06..23650dc9c 100644 --- a/src/document-undo.cpp +++ b/src/document-undo.cpp @@ -98,7 +98,6 @@ namespace { using Inkscape::Debug::Event; using Inkscape::Debug::SimpleEvent; -using Inkscape::Util::share_static_string; using Inkscape::Debug::timestamp; using Inkscape::Verb; @@ -108,18 +107,16 @@ class CommitEvent : public InteractionEvent { public: CommitEvent(SPDocument *doc, const gchar *key, const unsigned int type) - : InteractionEvent(share_static_string("commit")) + : InteractionEvent("commit") { - _addProperty(share_static_string("timestamp"), timestamp()); - gchar *serial = g_strdup_printf("%lu", doc->serial()); - _addProperty(share_static_string("document"), serial); - g_free(serial); + _addProperty("timestamp", timestamp().pointer()); + _addProperty("document", doc->serial()); Verb *verb = Verb::get(type); if (verb) { - _addProperty(share_static_string("context"), verb->get_id()); + _addProperty("context", verb->get_id()); } if (key) { - _addProperty(share_static_string("merge-key"), key); + _addProperty("merge-key", key); } } }; -- cgit v1.2.3