summaryrefslogtreecommitdiffstats
path: root/vcl/source/font/PhysicalFontCollection.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/font/PhysicalFontCollection.cxx')
-rw-r--r--vcl/source/font/PhysicalFontCollection.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/font/PhysicalFontCollection.cxx b/vcl/source/font/PhysicalFontCollection.cxx
index 9fbcabb95cc1..43ca203ff2d2 100644
--- a/vcl/source/font/PhysicalFontCollection.cxx
+++ b/vcl/source/font/PhysicalFontCollection.cxx
@@ -870,7 +870,7 @@ PhysicalFontFamily* PhysicalFontCollection::ImplFindFontFamilyOfDefaultFont() co
std::shared_ptr<PhysicalFontCollection> PhysicalFontCollection::Clone() const
{
- std::shared_ptr<PhysicalFontCollection> xClonedCollection(new PhysicalFontCollection);
+ auto xClonedCollection = std::make_shared<PhysicalFontCollection>();
xClonedCollection->mpPreMatchHook = mpPreMatchHook;
xClonedCollection->mpFallbackHook = mpFallbackHook;