From ef3003ae8246b402b2a082d78587d5cf3c5635dd Mon Sep 17 00:00:00 2001 From: randomdan Date: Fri, 30 Dec 2011 06:52:53 +0000 Subject: Remove useless typedef requiring extra template parameter --- project2/common/scriptStorage.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/project2/common/scriptStorage.h b/project2/common/scriptStorage.h index 0187cb4..1c5ed1e 100644 --- a/project2/common/scriptStorage.h +++ b/project2/common/scriptStorage.h @@ -38,10 +38,9 @@ class Storer : public virtual IntrusivePtrBase { virtual bool save(boost::intrusive_ptr, const Glib::ustring &) = 0; }; -template +template class StorerBase : public Storer { public: - typedef M * Map; boost::intrusive_ptr create(ScriptNodePtr p) const { return LoaderBase::getLoader(p->get_name())->createFrom(p); } @@ -58,13 +57,13 @@ class StorerBase : public Storer { }; template -class StorerImpl : public StorerBase { +class StorerImpl : public StorerBase { public: StorerImpl(M * m); bool insert(boost::intrusive_ptr O); }; template -class StorerImpl : public StorerBase { +class StorerImpl : public StorerBase { public: typedef SINGLE(X) Obj; StorerImpl(SINGLE(X) * o) : obj(o) @@ -78,7 +77,7 @@ class StorerImpl : public StorerBase { Obj * obj; }; template -class StorerImpl : public StorerBase { +class StorerImpl : public StorerBase { public: typedef STORAGEOF(X) Map; StorerImpl(STORAGEOF(X) * m) : map(m) @@ -91,7 +90,7 @@ class StorerImpl : public StorerBase { Map * map; }; template -class StorerImpl : public StorerBase { +class StorerImpl : public StorerBase { public: typedef ANONSTORAGEOF(X) Map; StorerImpl(ANONSTORAGEOF(X) * m) : map(m) @@ -105,7 +104,7 @@ class StorerImpl : public StorerBase -class StorerImpl : public StorerBase { +class StorerImpl : public StorerBase { public: typedef ANONORDEREDSTORAGEOF(X) Map; StorerImpl(ANONORDEREDSTORAGEOF(X) * m) : map(m) -- cgit v1.2.3