From ad8a2074c6143d3ce05c0a5d93a553c13b950520 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Fri, 20 Mar 2015 18:58:34 +0000 Subject: cure a lot of unfortunate ScopedVclPtrs. Change-Id: I2149511f958ba75e81dc41b10b01eb9d19610037 --- svtools/source/misc/sampletext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svtools/source/misc') diff --git a/svtools/source/misc/sampletext.cxx b/svtools/source/misc/sampletext.cxx index a1cb7a83d111..889103dc9efe 100644 --- a/svtools/source/misc/sampletext.cxx +++ b/svtools/source/misc/sampletext.cxx @@ -1623,7 +1623,7 @@ OUString makeRepresentativeTextForFont(sal_Int16 nScriptType, const vcl::Font &r { OUString sRet(makeRepresentativeTextForLanguage(rFont.GetLanguage())); - ScopedVclPtr aDevice = new VirtualDevice; + ScopedVclPtr aDevice( new VirtualDevice() ); if (sRet.isEmpty() || (-1 != aDevice->HasGlyphs(rFont, sRet))) { aDevice->SetFont(rFont); -- cgit