summaryrefslogtreecommitdiff
path: root/sax
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-13 21:24:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-17 09:29:50 +0200
commit185e01c015528cafbddcda5dfdabf816ce8be20e (patch)
tree1342baec7abca149c1477902cafdd16ad8b250f7 /sax
parent1e917af27d18d934f3e9122aa98cd950b74ca246 (diff)
loplugin:sequentialassign in sc
Change-Id: I9287d266cd5267e194f2539f95a7efff3824e9b1 Reviewed-on: https://gerrit.libreoffice.org/70715 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
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;