diff options
Diffstat (limited to 'sfx2/qa/cppunit')
-rw-r--r-- | sfx2/qa/cppunit/test_metadatable.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/qa/cppunit/test_metadatable.cxx b/sfx2/qa/cppunit/test_metadatable.cxx index e5175ac57a84..b23bad29b036 100644 --- a/sfx2/qa/cppunit/test_metadatable.cxx +++ b/sfx2/qa/cppunit/test_metadatable.cxx @@ -43,6 +43,8 @@ #include <sfx2/Metadatable.hxx> #include <sfx2/XmlIdRegistry.hxx> +#include <boost/scoped_ptr.hpp> + using namespace ::com::sun::star; @@ -104,9 +106,9 @@ static bool operator==(beans::StringPair p1, beans::StringPair p2) void MetadatableTest::test() { OSL_TRACE("SwMetadatable test(): start"); - ::std::auto_ptr< ::sfx2::IXmlIdRegistry > const pReg( + boost::scoped_ptr< ::sfx2::IXmlIdRegistry > const pReg( ::sfx2::createXmlIdRegistry(false) ); - ::std::auto_ptr< ::sfx2::IXmlIdRegistry > const pRegClip( + boost::scoped_ptr< ::sfx2::IXmlIdRegistry > const pRegClip( ::sfx2::createXmlIdRegistry(true) ); MockMetadatable m1(*pReg); |