diff options
author | Aditya <adityasahu1511@gmail.com> | 2020-08-29 19:49:50 +0530 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2020-09-06 12:46:10 +0200 |
commit | 3c109047b1d99afa1cbf694bd93f44feb80ca648 (patch) | |
tree | 288ce30762867a202c13160e1786f4bbed8b2bd2 /svx/source/gallery2 | |
parent | 0e3b72ac75d9f9c70fe6e74e83a43ffa2635c777 (diff) |
svx: Remove GalleryBinaryEngineEntry::createGalleryStorageLocations()
Initialize the member GalleryStorageLocations in the constructor only
Change-Id: I0a37a1c87323d724f88b1de0aeb6151707b41853
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101642
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx/source/gallery2')
-rw-r--r-- | svx/source/gallery2/gallerybinaryengineentry.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/svx/source/gallery2/gallerybinaryengineentry.cxx b/svx/source/gallery2/gallerybinaryengineentry.cxx index 5c7c81fb5790..7750c9ae9bc0 100644 --- a/svx/source/gallery2/gallerybinaryengineentry.cxx +++ b/svx/source/gallery2/gallerybinaryengineentry.cxx @@ -43,15 +43,7 @@ static bool FileExists(const INetURLObject& rURL, const OUString& rExt) GalleryBinaryEngineEntry::GalleryBinaryEngineEntry() { - mpGalleryStorageLocations = createGalleryStorageLocations(); -} - -std::unique_ptr<GalleryBinaryStorageLocations> -GalleryBinaryEngineEntry::createGalleryStorageLocations() -{ - std::unique_ptr<GalleryBinaryStorageLocations> pGalleryStorageLocations - = std::make_unique<GalleryBinaryStorageLocations>(); - return pGalleryStorageLocations; + mpGalleryStorageLocations = std::make_unique<GalleryBinaryStorageLocations>(); } void GalleryBinaryEngineEntry::setStorageLocations(INetURLObject& rURL) |