loplugin:refcounting
Change-Id: I39fbc89cffe25e85b8cd1f2e36f0a20c07e33497
This commit is contained in:
@@ -351,12 +351,12 @@ class XMLImportTest : public test::BootstrapFixture
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
OUString m_sDirPath;
|
OUString m_sDirPath;
|
||||||
Reference< TestDocumentHandler > m_xDocumentHandler;
|
rtl::Reference< TestDocumentHandler > m_xDocumentHandler;
|
||||||
Reference< TestFastDocumentHandler > m_xFastDocumentHandler;
|
rtl::Reference< TestFastDocumentHandler > m_xFastDocumentHandler;
|
||||||
Reference< XParser > m_xParser;
|
Reference< XParser > m_xParser;
|
||||||
Reference< XFastParser > m_xFastParser;
|
Reference< XFastParser > m_xFastParser;
|
||||||
Reference< XParser > m_xLegacyFastParser;
|
Reference< XParser > m_xLegacyFastParser;
|
||||||
Reference< TestLegacyDocumentHandler > m_xLegacyDocumentHandler;
|
rtl::Reference< TestLegacyDocumentHandler > m_xLegacyDocumentHandler;
|
||||||
Reference< XFastTokenHandler > m_xFastTokenHandler;
|
Reference< XFastTokenHandler > m_xFastTokenHandler;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -381,12 +381,12 @@ void XMLImportTest::setUp()
|
|||||||
m_xFastTokenHandler.set( new TestTokenHandler() );
|
m_xFastTokenHandler.set( new TestTokenHandler() );
|
||||||
m_xParser = Parser::create( xContext );
|
m_xParser = Parser::create( xContext );
|
||||||
m_xFastParser = FastParser::create( xContext );
|
m_xFastParser = FastParser::create( xContext );
|
||||||
m_xParser->setDocumentHandler( m_xDocumentHandler );
|
m_xParser->setDocumentHandler( m_xDocumentHandler.get() );
|
||||||
m_xFastParser->setFastDocumentHandler( m_xFastDocumentHandler );
|
m_xFastParser->setFastDocumentHandler( m_xFastDocumentHandler.get() );
|
||||||
m_xFastParser->setTokenHandler( m_xFastTokenHandler );
|
m_xFastParser->setTokenHandler( m_xFastTokenHandler );
|
||||||
m_xLegacyFastParser.set( xContext->getServiceManager()->createInstanceWithContext
|
m_xLegacyFastParser.set( xContext->getServiceManager()->createInstanceWithContext
|
||||||
( "com.sun.star.xml.sax.LegacyFastParser", xContext ), UNO_QUERY );
|
( "com.sun.star.xml.sax.LegacyFastParser", xContext ), UNO_QUERY );
|
||||||
m_xLegacyFastParser->setDocumentHandler( m_xLegacyDocumentHandler );
|
m_xLegacyFastParser->setDocumentHandler( m_xLegacyDocumentHandler.get() );
|
||||||
m_sDirPath = m_directories.getPathFromSrc( "/sax/qa/data/" );
|
m_sDirPath = m_directories.getPathFromSrc( "/sax/qa/data/" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user