summaryrefslogtreecommitdiffstats
path: root/src/debug/event.h
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-01-23 03:57:42 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2019-01-24 17:08:27 +0000
commitfae3e6149995446aad42fd78b4c69a9e34027aae (patch)
tree457ec878f41accfe9af46b02667c1a96e28b1b5a /src/debug/event.h
parentEvent: Make name and property name char const*. (diff)
downloadinkscape-fae3e6149995446aad42fd78b4c69a9e34027aae.tar.gz
inkscape-fae3e6149995446aad42fd78b4c69a9e34027aae.zip
Event: Make property value char const* too.
Diffstat (limited to 'src/debug/event.h')
-rw-r--r--src/debug/event.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/debug/event.h b/src/debug/event.h
index de5cddd07..ff049d71c 100644
--- a/src/debug/event.h
+++ b/src/debug/event.h
@@ -13,6 +13,8 @@
#ifndef SEEN_INKSCAPE_DEBUG_EVENT_H
#define SEEN_INKSCAPE_DEBUG_EVENT_H
+#include <memory>
+#include <string>
#include <utility>
#include "util/share.h"
@@ -41,14 +43,14 @@ public:
struct PropertyPair {
public:
PropertyPair() = default;
- PropertyPair(char const *n, Util::ptr_shared v)
- : name(n), value(v) {}
+ PropertyPair(char const *n, std::shared_ptr<std::string>&& v)
+ : name(n), value(std::move(v)) {}
PropertyPair(char const *n, char const *v)
: name(n),
- value(Util::share_string(v)) {}
+ value(std::move(std::make_shared<std::string>(v))) {}
char const *name;
- Util::ptr_shared value;
+ std::shared_ptr<std::string> value;
};
static Category category() { return OTHER; }