diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-20 14:46:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-08-22 08:27:07 +0200 |
commit | 66a8ad83d5b8142720c8579bdde046e9332c06ca (patch) | |
tree | 886356b8e14395ff40ca17d704017b3e87daefa7 /sc/source/core | |
parent | 8b25bf16fb0ec41681ca8569327d68c493ca88dc (diff) |
loplugin:useuniqueptr in ModuleData
Change-Id: I90b4f18028fe269f44973fbb3b8ed002335f11ef
Reviewed-on: https://gerrit.libreoffice.org/59363
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/tool/callform.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/callform.cxx b/sc/source/core/tool/callform.cxx index 1acfa271e5e3..21eb192526a7 100644 --- a/sc/source/core/tool/callform.cxx +++ b/sc/source/core/tool/callform.cxx @@ -85,7 +85,7 @@ public: ModuleData(const ModuleData&) = delete; const ModuleData& operator=(const ModuleData&) = delete; - ModuleData(const OUString& rStr, osl::Module* pInst) : aName(rStr), pInstance(pInst) {} + ModuleData(const OUString& rStr, std::unique_ptr<osl::Module> pInst) : aName(rStr), pInstance(std::move(pInst)) {} const OUString& GetName() const { return aName; } osl::Module* GetInstance() const { return pInstance.get(); } @@ -193,7 +193,7 @@ bool InitExternalFunc(const OUString& rModuleName) } // include module into the collection - ModuleData* pModuleData = new ModuleData(rModuleName, pLib.release()); + ModuleData* pModuleData = new ModuleData(rModuleName, std::move(pLib)); aModuleCollection.insert(pModuleData); // initialize interface |