summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
Diffstat (limited to 'sax')
-rw-r--r--sax/qa/cppunit/xmlimport.cxx3
-rw-r--r--sax/source/fastparser/fastparser.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/sax/qa/cppunit/xmlimport.cxx b/sax/qa/cppunit/xmlimport.cxx
index 6e011c1e971b..7ab34ed763c9 100644
--- a/sax/qa/cppunit/xmlimport.cxx
+++ b/sax/qa/cppunit/xmlimport.cxx
@@ -370,8 +370,7 @@ void XMLImportTest::setUp()
namespaceArgs[0] <<= OUString( "registerNamespaces" );
for (sal_Int32 i = 1; i <= nNamespaceCount; i++ )
{
- css::beans::Pair <OUString, sal_Int32> rPair;
- rPair = css::beans::Pair<OUString, sal_Int32>( DummyTokenHandler::namespaceURIs[i - 1], i << 16 );
+ css::beans::Pair<OUString, sal_Int32> rPair( DummyTokenHandler::namespaceURIs[i - 1], i << 16 );
namespaceArgs[i] <<= rPair;
}
xInit->initialize( namespaceArgs );
diff --git a/sax/source/fastparser/fastparser.cxx b/sax/source/fastparser/fastparser.cxx
index 92a5f7a87b38..f255147f131b 100644
--- a/sax/source/fastparser/fastparser.cxx
+++ b/sax/source/fastparser/fastparser.cxx
@@ -806,8 +806,7 @@ void FastSaxParserImpl::parseStream(const InputSource& rStructSource)
if (rEntity.mbEnableThreads)
{
- rtl::Reference<ParserThread> xParser;
- xParser = new ParserThread(this);
+ rtl::Reference<ParserThread> xParser = new ParserThread(this);
xParser->launch();
aEnsureFree.setThread(xParser);
bool done = false;