diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2019-01-23 04:24:00 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2019-01-24 17:08:27 +0000 |
| commit | 258914e0577cd0d556abe2356be908b513a3b876 (patch) | |
| tree | e2d5fe3d1f107e5eeec011aa120372fe9d1b3706 /src/document-undo.cpp | |
| parent | Logger: Switch TagStack to std::shared_ptr. (diff) | |
| download | inkscape-258914e0577cd0d556abe2356be908b513a3b876.tar.gz inkscape-258914e0577cd0d556abe2356be908b513a3b876.zip | |
Event: Switch all call sites from Util::ptr_shared to char const* or std::shared_ptr.
Diffstat (limited to 'src/document-undo.cpp')
| -rw-r--r-- | src/document-undo.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
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); } } }; |
