summaryrefslogtreecommitdiffstats
path: root/src/debug/event.h
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-02-06 04:15:05 +0000
committermental <mental@users.sourceforge.net>2006-02-06 04:15:05 +0000
commit4f46bb0e09ddfa540b60bd4d152385729127aceb (patch)
tree7b30dc6f0d64d847c422352d23ef1187ec04802a /src/debug/event.h
parentsilence warnings (diff)
downloadinkscape-4f46bb0e09ddfa540b60bd4d152385729127aceb.tar.gz
inkscape-4f46bb0e09ddfa540b60bd4d152385729127aceb.zip
replace Util::SharedCStringPtr with the more general Util::shared_ptr<>
(bzr r87)
Diffstat (limited to 'src/debug/event.h')
-rw-r--r--src/debug/event.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/debug/event.h b/src/debug/event.h
index c3b3a83fb..8232f890d 100644
--- a/src/debug/event.h
+++ b/src/debug/event.h
@@ -13,7 +13,7 @@
#define SEEN_INKSCAPE_DEBUG_EVENT_H
#include <utility>
-#include "util/shared-c-string-ptr.h"
+#include "util/share.h"
namespace Inkscape {
@@ -37,23 +37,23 @@ public:
struct PropertyPair {
public:
PropertyPair() {}
- PropertyPair(Util::SharedCStringPtr n, Util::SharedCStringPtr v)
+ PropertyPair(Util::shared_ptr<char> n, Util::shared_ptr<char> v)
: name(n), value(v) {}
- PropertyPair(char const *n, Util::SharedCStringPtr v)
- : name(Util::SharedCStringPtr::copy(n)), value(v) {}
- PropertyPair(Util::SharedCStringPtr n, char const *v)
- : name(n), value(Util::SharedCStringPtr::copy(v)) {}
+ PropertyPair(char const *n, Util::shared_ptr<char> v)
+ : name(Util::share_string(n)), value(v) {}
+ PropertyPair(Util::shared_ptr<char> n, char const *v)
+ : name(n), value(Util::share_string(v)) {}
PropertyPair(char const *n, char const *v)
- : name(Util::SharedCStringPtr::copy(n)),
- value(Util::SharedCStringPtr::copy(v)) {}
+ : name(Util::share_string(n)),
+ value(Util::share_string(v)) {}
- Util::SharedCStringPtr name;
- Util::SharedCStringPtr value;
+ Util::shared_ptr<char> name;
+ Util::shared_ptr<char> value;
};
static Category category() { return OTHER; }
- virtual Util::SharedCStringPtr name() const=0;
+ virtual Util::shared_ptr<char> name() const=0;
virtual unsigned propertyCount() const=0;
virtual PropertyPair property(unsigned property) const=0;
};