diff --git a/src/FbTk/Resource.hh b/src/FbTk/Resource.hh index 95f649e5..7a756e8b 100644 --- a/src/FbTk/Resource.hh +++ b/src/FbTk/Resource.hh @@ -168,14 +168,14 @@ template class Resource:public Resource_base { public: + typedef T Type; Resource(ResourceManager &rm, T val, const std::string &name, const std::string &altname): Resource_base(name, altname), m_value(val), m_defaultval(val), - m_rm(rm) - { - m_rm.addResource(*this); // add this to resource handler - } + m_rm(rm) { + m_rm.addResource(*this); // add this to resource handler + } virtual ~Resource() { m_rm.removeResource(*this); // remove this from resource handler }