diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-02 12:45:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-03 09:07:51 +0200 |
commit | cd6486b118c8453f1e494ddeb97021f0ef9181c4 (patch) | |
tree | 97df7a0c9579e68d10a149e006a83e92d692eb59 /include | |
parent | 28dc7c3c5efe78d8e43abec89fb904100ace5d41 (diff) |
loplugin:useuniqueptr in BasicManager
Change-Id: I9774a1651c8754f575ebb4b98fbddee5a99a7719
Reviewed-on: https://gerrit.libreoffice.org/58485
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/basic/basmgr.hxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/include/basic/basmgr.hxx b/include/basic/basmgr.hxx index 5e70e6ea138b..3229155c6ede 100644 --- a/include/basic/basmgr.hxx +++ b/include/basic/basmgr.hxx @@ -130,20 +130,11 @@ protected: static bool ImplEncryptStream( SvStream& rStream ); BasicLibInfo* FindLibInfo( StarBASIC const * pBasic ); static void CheckModules( StarBASIC* pBasic, bool bReference ); - virtual ~BasicManager() override; public: BasicManager( SotStorage& rStorage, const OUString& rBaseURL, StarBASIC* pParentFromStdLib = nullptr, OUString const * pLibPath = nullptr, bool bDocMgr = false ); BasicManager( StarBASIC* pStdLib, OUString const * pLibPath = nullptr, bool bDocMgr = false ); - - /** deletes the given BasicManager instance - - This method is necessary since normally, BasicManager instances are owned by the BasicManagerRepository, - and expected to be deleted by the repository only. However, there exists quite some legacy code, - which needs to explicitly delete a BasicManager itself. This code must not use the (protected) - destructor, but LegacyDeleteBasicManager. - */ - static void LegacyDeleteBasicManager( BasicManager*& _rpManager ); + virtual ~BasicManager() override; void SetStorageName( const OUString& rName ) { maStorageName = rName; } const OUString& GetStorageName() const { return maStorageName; } |