summaryrefslogtreecommitdiffstats
path: root/src/debug
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-01-23 04:24:00 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2019-01-24 17:08:27 +0000
commit258914e0577cd0d556abe2356be908b513a3b876 (patch)
treee2d5fe3d1f107e5eeec011aa120372fe9d1b3706 /src/debug
parentLogger: Switch TagStack to std::shared_ptr. (diff)
downloadinkscape-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/debug')
-rw-r--r--src/debug/logger.cpp1
-rw-r--r--src/debug/simple-event.h5
2 files changed, 1 insertions, 5 deletions
diff --git a/src/debug/logger.cpp b/src/debug/logger.cpp
index 2c76921ac..37b8221bf 100644
--- a/src/debug/logger.cpp
+++ b/src/debug/logger.cpp
@@ -10,6 +10,7 @@
* Released under GNU GPL v2+, read the file 'COPYING' for more information.
*/
+#include <cstring>
#include <fstream>
#include <memory>
#include <string>
diff --git a/src/debug/simple-event.h b/src/debug/simple-event.h
index 96dde6893..983ff5346 100644
--- a/src/debug/simple-event.h
+++ b/src/debug/simple-event.h
@@ -20,7 +20,6 @@
#include <glib.h> // g_assert()
#include "debug/event.h"
-#include "util/share.h"
namespace Inkscape {
@@ -45,10 +44,6 @@ public:
void generateChildEvents() const override {}
protected:
- // TODO: change all call sites for this method, and remove it.
- void _addProperty(char const *name, Util::ptr_shared value) {
- _properties.push_back(PropertyPair(name, std::move(std::make_shared<std::string>(value.pointer()))));
- }
void _addProperty(char const *name, std::shared_ptr<std::string>&& value) {
_properties.push_back(PropertyPair(name, std::move(value)));
}