diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-12-19 08:43:57 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-12-19 08:43:57 +0100 |
commit | 80d977b896904a0261d32857469c1b3e7516ca1e (patch) | |
tree | fd373f3969c9da27ec51edd5d6aef2d7f2bd1e32 /include/osl | |
parent | b7e0c9aa319b952d6fed09b8b5a835b1043149d2 (diff) |
Introduce osl::Module::release
...to make osl::Module useful in cases where there underlying library shall
remain loaded after the Module instance is destroyed.
Change-Id: Ie2c9c094207f159b900620d394f489d49ffa36d2
Diffstat (limited to 'include/osl')
-rw-r--r-- | include/osl/module.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/osl/module.hxx b/include/osl/module.hxx index 98cd1e32c33d..e78ff8842592 100644 --- a/include/osl/module.hxx +++ b/include/osl/module.hxx @@ -163,6 +163,15 @@ public: return m_Module; } + /** Release the module so that it will not be unloaded from the destructor. + + This instance returns to the state of a default-constructed instance + again. + + @since LibreOffice 4.3 + */ + void release() { m_Module = 0; } + private: oslModule m_Module; |