diff options
author | fluxgen <fluxgen> | 2006-03-18 21:55:38 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2006-03-18 21:55:38 (GMT) |
commit | 53b9228348f7491ac374bd6eaf006b227ad401c5 (patch) | |
tree | 552dfd88b9e767b1b8e62ee5193e60e03fb358a2 /src/FbTk | |
parent | 14befe1ff45dae165a51f85b8c5dadb37688378c (diff) | |
download | fluxbox_lack-53b9228348f7491ac374bd6eaf006b227ad401c5.zip fluxbox_lack-53b9228348f7491ac374bd6eaf006b227ad401c5.tar.bz2 |
added Type typedef of T in Resource
Diffstat (limited to 'src/FbTk')
-rw-r--r-- | src/FbTk/Resource.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FbTk/Resource.hh b/src/FbTk/Resource.hh index 95f649e..7a756e8 100644 --- a/src/FbTk/Resource.hh +++ b/src/FbTk/Resource.hh | |||
@@ -168,14 +168,14 @@ template <typename T> | |||
168 | class Resource:public Resource_base | 168 | class Resource:public Resource_base |
169 | { | 169 | { |
170 | public: | 170 | public: |
171 | typedef T Type; | ||
171 | Resource(ResourceManager &rm, T val, | 172 | Resource(ResourceManager &rm, T val, |
172 | const std::string &name, const std::string &altname): | 173 | const std::string &name, const std::string &altname): |
173 | Resource_base(name, altname), | 174 | Resource_base(name, altname), |
174 | m_value(val), m_defaultval(val), | 175 | m_value(val), m_defaultval(val), |
175 | m_rm(rm) | 176 | m_rm(rm) { |
176 | { | 177 | m_rm.addResource(*this); // add this to resource handler |
177 | m_rm.addResource(*this); // add this to resource handler | 178 | } |
178 | } | ||
179 | virtual ~Resource() { | 179 | virtual ~Resource() { |
180 | m_rm.removeResource(*this); // remove this from resource handler | 180 | m_rm.removeResource(*this); // remove this from resource handler |
181 | } | 181 | } |