summaryrefslogtreecommitdiffstats
path: root/src/sp-object.cpp
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-03-15 03:22:23 +0000
committermental <mental@users.sourceforge.net>2006-03-15 03:22:23 +0000
commit7663e55d418b5ea8765421c9570dba40f6bd97fd (patch)
tree74e9eef28e3553010bb121dc4eba4cb5b59d05ff /src/sp-object.cpp
parentdifferentiate _hreffed and _listening flags for color, fill, and stroke paint... (diff)
downloadinkscape-7663e55d418b5ea8765421c9570dba40f6bd97fd.tar.gz
inkscape-7663e55d418b5ea8765421c9570dba40f6bd97fd.zip
shared_ptr -> ptr_shared
(bzr r240)
Diffstat (limited to 'src/sp-object.cpp')
-rw-r--r--src/sp-object.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp
index 5f6bf779f..9068c4ba2 100644
--- a/src/sp-object.cpp
+++ b/src/sp-object.cpp
@@ -227,16 +227,16 @@ sp_object_finalize(GObject *object)
namespace {
-Inkscape::Util::shared_ptr<char> stringify(SPObject *obj) {
+Inkscape::Util::ptr_shared<char> stringify(SPObject *obj) {
char *temp=g_strdup_printf("%p", obj);
- Inkscape::Util::shared_ptr<char> result=Inkscape::Util::share_string(temp);
+ Inkscape::Util::ptr_shared<char> result=Inkscape::Util::share_string(temp);
g_free(temp);
return result;
}
-Inkscape::Util::shared_ptr<char> stringify(unsigned n) {
+Inkscape::Util::ptr_shared<char> stringify(unsigned n) {
char *temp=g_strdup_printf("%u", n);
- Inkscape::Util::shared_ptr<char> result=Inkscape::Util::share_string(temp);
+ Inkscape::Util::ptr_shared<char> result=Inkscape::Util::share_string(temp);
g_free(temp);
return result;
}
@@ -252,7 +252,7 @@ public:
static Category category() { return REFCOUNT; }
- Inkscape::Util::shared_ptr<char> name() const {
+ Inkscape::Util::ptr_shared<char> name() const {
if ( _type == REF) {
return Inkscape::Util::share_static_string("sp-object-ref");
} else {
@@ -272,7 +272,7 @@ public:
}
private:
- Inkscape::Util::shared_ptr<char> _object;
+ Inkscape::Util::ptr_shared<char> _object;
unsigned _refcount;
Type _type;
};