summaryrefslogtreecommitdiff
path: root/starmath/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-02-12 15:29:18 +0200
committerMichael Meeks <michael.meeks@collabora.com>2015-04-09 22:21:04 +0100
commit125895c355ebc9f60e792cdfffdf790c10c950cc (patch)
tree5a8882d7a10b512b6c6d6c7e3752b24426aefdf1 /starmath/qa
parentf7811b53c95410b8f1aa65b93b65701fd427a64f (diff)
vcl:fixes towards unit test happiness
Change-Id: Ic0a3075c7616f604b93228dff149931cf25a5ed8
Diffstat (limited to 'starmath/qa')
-rw-r--r--starmath/qa/cppunit/test_starmath.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx
index 054af675bfd1..d19c2972d2e9 100644
--- a/starmath/qa/cppunit/test_starmath.cxx
+++ b/starmath/qa/cppunit/test_starmath.cxx
@@ -60,8 +60,8 @@ private:
SfxBindings m_aBindings;
SfxDispatcher *m_pDispatcher;
- SmCmdBoxWindow *m_pSmCmdBoxWindow;
- SmEditWindow *m_pEditWindow;
+ VclPtr<SmCmdBoxWindow> m_pSmCmdBoxWindow;
+ VclPtr<SmEditWindow> m_pEditWindow;
SmDocShellRef m_xDocShRef;
SmViewShell *m_pViewShell;
};
@@ -94,8 +94,8 @@ void Test::setUp()
void Test::tearDown()
{
- delete m_pEditWindow;
- delete m_pSmCmdBoxWindow;
+ m_pEditWindow.disposeAndClear();
+ m_pSmCmdBoxWindow.disposeAndClear();
delete m_pDispatcher;
m_xDocShRef->DoClose();
m_xDocShRef.Clear();