summaryrefslogtreecommitdiff
path: root/svtools/source/misc
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-03-20 18:58:34 +0000
committerMichael Meeks <michael.meeks@collabora.com>2015-04-10 13:01:49 +0100
commitad8a2074c6143d3ce05c0a5d93a553c13b950520 (patch)
tree2f47189a78e80d478a15a3360906131fc9c16428 /svtools/source/misc
parent8fb4672aef888fc5a582ca9508799ecdbe777c42 (diff)
cure a lot of unfortunate ScopedVclPtrs.
Change-Id: I2149511f958ba75e81dc41b10b01eb9d19610037
Diffstat (limited to 'svtools/source/misc')
-rw-r--r--svtools/source/misc/sampletext.cxx2
1 files changed, 1 insertions, 1 deletions
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<VirtualDevice> aDevice = new VirtualDevice;
+ ScopedVclPtr<VirtualDevice> aDevice( new VirtualDevice() );
if (sRet.isEmpty() || (-1 != aDevice->HasGlyphs(rFont, sRet)))
{
aDevice->SetFont(rFont);