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/helper/action.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/helper/action.cpp')
| -rw-r--r-- | src/helper/action.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/helper/action.cpp b/src/helper/action.cpp index 81853e086..2859f6273 100644 --- a/src/helper/action.cpp +++ b/src/helper/action.cpp @@ -105,7 +105,6 @@ namespace { using Inkscape::Debug::SimpleEvent; using Inkscape::Debug::Event; -using Inkscape::Util::share_static_string; using Inkscape::Debug::timestamp; typedef SimpleEvent<Event::INTERACTION> ActionEventBase; @@ -113,14 +112,14 @@ typedef SimpleEvent<Event::INTERACTION> ActionEventBase; class ActionEvent : public ActionEventBase { public: ActionEvent(SPAction const *action) - : ActionEventBase(share_static_string("action")) + : ActionEventBase("action") { - _addProperty(share_static_string("timestamp"), timestamp()); + _addProperty("timestamp", timestamp().pointer()); SPDocument *document = action->context.getDocument(); if (document) { - _addProperty(share_static_string("document"), document->serial()); + _addProperty("document", document->serial()); } - _addProperty(share_static_string("verb"), action->id); + _addProperty("verb", action->id); } }; |
