summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-10 09:20:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-10 12:50:16 +0100
commitb3ac9676143f5beed532455832f67540ff353d13 (patch)
treeb967b0af7d27c7a197b711a01f32e07a15434591 /vcl/qa/cppunit
parentcb3b90751b8781454b85b816a7e328f31615f563 (diff)
coverity#1244943 Resource leak
Change-Id: Ibee999fada60eed067d0d4e44a94294084529294
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r--vcl/qa/cppunit/fontcharmap.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/qa/cppunit/fontcharmap.cxx b/vcl/qa/cppunit/fontcharmap.cxx
index 1fee918bee0d..2c361580613d 100644
--- a/vcl/qa/cppunit/fontcharmap.cxx
+++ b/vcl/qa/cppunit/fontcharmap.cxx
@@ -28,13 +28,13 @@ public:
void VclFontCharMapTest::testDefaultFontCharMap()
{
- FontCharMap *fcmap = new FontCharMap(); // gets default map
+ FontCharMap fcmap; // gets default map
- CPPUNIT_ASSERT( fcmap->IsDefaultMap() );
+ CPPUNIT_ASSERT( fcmap.IsDefaultMap() );
- sal_uInt32 nStartBMPPlane = fcmap->GetFirstChar();
- sal_uInt32 nStartSupBMPPlane = fcmap->GetNextChar(0xD800);
- sal_uInt32 nEndBMPPlane = fcmap->GetLastChar();
+ sal_uInt32 nStartBMPPlane = fcmap.GetFirstChar();
+ sal_uInt32 nStartSupBMPPlane = fcmap.GetNextChar(0xD800);
+ sal_uInt32 nEndBMPPlane = fcmap.GetLastChar();
CPPUNIT_ASSERT( nStartBMPPlane == 0x0020 );
CPPUNIT_ASSERT( nStartSupBMPPlane == 0xE000 );