diff options
author | Johannes Schickel | 2012-06-14 03:12:48 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-06-14 03:12:48 +0200 |
commit | b7c3ffd37cfe10b45976b3e7fb4a595350ef7734 (patch) | |
tree | 6a2d5eb185ea7b6cdebef3334e2527b6d669f236 /base | |
parent | 27b8b7e9b6644767ad9de1e40c188a7abd631c4e (diff) | |
download | scummvm-rg350-b7c3ffd37cfe10b45976b3e7fb4a595350ef7734.tar.gz scummvm-rg350-b7c3ffd37cfe10b45976b3e7fb4a595350ef7734.tar.bz2 scummvm-rg350-b7c3ffd37cfe10b45976b3e7fb4a595350ef7734.zip |
BASE: Add operator* to PluginSubclass.
Diffstat (limited to 'base')
-rw-r--r-- | base/plugins.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/plugins.h b/base/plugins.h index fffb5fb910..4409c9eaea 100644 --- a/base/plugins.h +++ b/base/plugins.h @@ -205,6 +205,10 @@ typedef Common::Array<Plugin *> PluginList; template<class PO_t> class PluginSubclass : public Plugin { public: + PO_t &operator*() const { + return *(PO_t *)_pluginObject; + } + PO_t *operator->() const { return (PO_t *)_pluginObject; } |