summaryrefslogtreecommitdiffstats
path: root/src/debug
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2019-01-23 04:38:21 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2019-01-24 17:08:27 +0000
commit0a7847d441fc5aeb869ec44ab8d1923babd1697e (patch)
tree627d9c5624173bbfcb06a64919af59001046e78e /src/debug
parentTimestamp: Switch to std::shared_ptr. (diff)
downloadinkscape-0a7847d441fc5aeb869ec44ab8d1923babd1697e.tar.gz
inkscape-0a7847d441fc5aeb869ec44ab8d1923babd1697e.zip
Debug: Remove the last remnants of Util::ptr_shared.
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/gc-heap.h4
-rw-r--r--src/debug/heap.h3
-rw-r--r--src/debug/log-display-config.h2
-rw-r--r--src/debug/sysv-heap.h4
4 files changed, 5 insertions, 8 deletions
diff --git a/src/debug/gc-heap.h b/src/debug/gc-heap.h
index 155e13eb1..e0fd8f159 100644
--- a/src/debug/gc-heap.h
+++ b/src/debug/gc-heap.h
@@ -24,8 +24,8 @@ public:
int features() const override {
return SIZE_AVAILABLE | USED_AVAILABLE | GARBAGE_COLLECTED;
}
- Util::ptr_shared name() const override {
- return Util::share_static_string("libgc");
+ char const *name() const override {
+ return "libgc";
}
Heap::Stats stats() const override {
Stats stats;
diff --git a/src/debug/heap.h b/src/debug/heap.h
index 72aae1603..81e7b73eb 100644
--- a/src/debug/heap.h
+++ b/src/debug/heap.h
@@ -14,7 +14,6 @@
#define SEEN_INKSCAPE_DEBUG_HEAP_H
#include <cstddef>
-#include "util/share.h"
namespace Inkscape {
@@ -37,7 +36,7 @@ public:
virtual int features() const=0;
- virtual Util::ptr_shared name() const=0;
+ virtual char const *name() const=0;
virtual Stats stats() const=0;
virtual void force_collect()=0;
};
diff --git a/src/debug/log-display-config.h b/src/debug/log-display-config.h
index 9adef3347..df9be18ac 100644
--- a/src/debug/log-display-config.h
+++ b/src/debug/log-display-config.h
@@ -13,8 +13,6 @@
#ifndef SEEN_INKSCAPE_DEBUG_LOG_DISPLAY_CONFIG_H
#define SEEN_INKSCAPE_DEBUG_LOG_DISPLAY_CONFIG_H
-#include "util/share.h"
-
namespace Inkscape {
namespace Debug {
diff --git a/src/debug/sysv-heap.h b/src/debug/sysv-heap.h
index 3829eb11d..f7ed27107 100644
--- a/src/debug/sysv-heap.h
+++ b/src/debug/sysv-heap.h
@@ -24,8 +24,8 @@ public:
int features() const override;
- Util::ptr_shared name() const override {
- return Util::share_static_string("standard malloc()");
+ char const *name() const override {
+ return "standard malloc()";
}
Stats stats() const override;
void force_collect() override {}