summaryrefslogtreecommitdiff
path: root/svx/source/gallery2
diff options
context:
space:
mode:
authorAditya <adityasahu1511@gmail.com>2020-08-29 20:53:25 +0530
committerTomaž Vajngerl <quikee@gmail.com>2020-09-06 12:46:34 +0200
commit86daf3617f2a5e59507f1e6d9a57ca6d39745db8 (patch)
tree942e6c3f7c57045c2c0c180578a5cec9c2494de8 /svx/source/gallery2
parent3c109047b1d99afa1cbf694bd93f44feb80ca648 (diff)
svx: Remove GalleryThemeEntry::createGalleryStorageEngineEntry()
Change-Id: I8e96e5e21c635bcd1e76f2fb6903116cff500892 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101643 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'svx/source/gallery2')
-rw-r--r--svx/source/gallery2/gallery1.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx
index d0a2da1836d7..7eee341227eb 100644
--- a/svx/source/gallery2/gallery1.cxx
+++ b/svx/source/gallery2/gallery1.cxx
@@ -122,7 +122,8 @@ GalleryThemeEntry::GalleryThemeEntry( bool bCreateUniqueURL,
{
GalleryBinaryEngineEntry::CreateUniqueURL(rBaseURL,aURL);
}
- mpGalleryStorageEngineEntry = createGalleryStorageEngineEntry();
+
+ mpGalleryStorageEngineEntry = std::make_unique<GalleryBinaryEngineEntry>();
setStorageLocations(aURL);
SetModified( _bNewFile );
@@ -161,12 +162,6 @@ GalleryThemeEntry::GalleryThemeEntry( bool bCreateUniqueURL,
aName = rName;
}
-std::unique_ptr<GalleryBinaryEngineEntry> GalleryThemeEntry::createGalleryStorageEngineEntry()
-{
- std::unique_ptr<GalleryBinaryEngineEntry> pGalleryBinaryEngineEntry = std::make_unique<GalleryBinaryEngineEntry>();
- return pGalleryBinaryEngineEntry;
-}
-
void GalleryThemeEntry::setStorageLocations(INetURLObject& rURL)
{
mpGalleryStorageEngineEntry->setStorageLocations(rURL);