diff options
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; |