diff options
Diffstat (limited to 'cppcanvas/qa/unit/test.cxx')
-rw-r--r-- | cppcanvas/qa/unit/test.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cppcanvas/qa/unit/test.cxx b/cppcanvas/qa/unit/test.cxx index af652a3cf727..06d8d6ea81aa 100644 --- a/cppcanvas/qa/unit/test.cxx +++ b/cppcanvas/qa/unit/test.cxx @@ -7,6 +7,9 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include <sal/config.h> + +#include <boost/scoped_ptr.hpp> #include <test/bootstrapfixture.hxx> #include <osl/file.hxx> @@ -40,8 +43,7 @@ public: void CanvasTest::testComposite() { #ifdef LINUX - Window* pWin = new WorkWindow( (Window *)NULL ); - CPPUNIT_ASSERT( pWin != NULL ); + boost::scoped_ptr<Window> pWin(new WorkWindow( (Window *)NULL )); uno::Reference<rendering::XCanvas> xCanvas = pWin->GetCanvas (); if( !xCanvas.is() ) |