diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2015-06-06 12:30:49 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-06-06 21:23:05 +0200 |
commit | 1e51b62c882b5fc1554efb46cb41c3d54157626c (patch) | |
tree | 08e81ac1382d8528584c9f237aaf8ff976e2af8a /logic/resources/ResourceHandler.h | |
parent | 24db645167b42adba5d9c221215be83bef39e2a1 (diff) | |
download | MultiMC-1e51b62c882b5fc1554efb46cb41c3d54157626c.tar MultiMC-1e51b62c882b5fc1554efb46cb41c3d54157626c.tar.gz MultiMC-1e51b62c882b5fc1554efb46cb41c3d54157626c.tar.lz MultiMC-1e51b62c882b5fc1554efb46cb41c3d54157626c.tar.xz MultiMC-1e51b62c882b5fc1554efb46cb41c3d54157626c.zip |
NOISSUE Comment and bugfix the Resource system
Diffstat (limited to 'logic/resources/ResourceHandler.h')
-rw-r--r-- | logic/resources/ResourceHandler.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/logic/resources/ResourceHandler.h b/logic/resources/ResourceHandler.h index c1105efc..a4f638ec 100644 --- a/logic/resources/ResourceHandler.h +++ b/logic/resources/ResourceHandler.h @@ -17,7 +17,8 @@ public: virtual ~ResourceHandler() {} void setResource(Resource *resource) { m_resource = resource; } - // reimplement this if you need to do something after you have been put in a shared pointer + /// reimplement this if you need to do something after you have been put in a shared pointer + // we do this instead of inheriting from std::enable_shared_from_this virtual void init(std::shared_ptr<ResourceHandler>&) {} QVariant result() const { return m_result; } |