summaryrefslogtreecommitdiffstats
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-04-13 21:27:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-04-14 08:29:08 +0200
commit8f59317223e0b8e1e5e6e4145b6ee457fe9e15f3 (patch)
tree4ed567d87c66931572848ceeae1004a6f237bc3e /svl
parentRemove check for empty color name (diff)
downloadcore-8f59317223e0b8e1e5e6e4145b6ee457fe9e15f3.tar.gz
core-8f59317223e0b8e1e5e6e4145b6ee457fe9e15f3.zip
loplugin:sequentialassign in starmath..svl
Change-Id: I95d7b67cd8b6b68c087ff96fdb6bb283ab8b49ec Reviewed-on: https://gerrit.libreoffice.org/70718 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/fsstor/fsfactory.cxx4
-rw-r--r--svl/source/fsstor/fsstorage.cxx3
-rw-r--r--svl/source/fsstor/ostreamcontainer.cxx4
-rw-r--r--svl/source/items/itempool.cxx3
-rw-r--r--svl/source/misc/documentlockfile.cxx4
5 files changed, 5 insertions, 13 deletions
diff --git a/svl/source/fsstor/fsfactory.cxx b/svl/source/fsstor/fsfactory.cxx
index 816de07b201c..31fd68bd54a6 100644
--- a/svl/source/fsstor/fsfactory.cxx
+++ b/svl/source/fsstor/fsfactory.cxx
@@ -58,9 +58,7 @@ uno::Reference< uno::XInterface > SAL_CALL FSStorageFactory::impl_staticCreateSe
uno::Reference< uno::XInterface > SAL_CALL FSStorageFactory::createInstance()
{
- OUString aTempURL;
-
- aTempURL = ::utl::TempFile( nullptr, true ).GetURL();
+ OUString aTempURL = ::utl::TempFile( nullptr, true ).GetURL();
if ( aTempURL.isEmpty() )
throw uno::RuntimeException(); // TODO: can not create tempfile
diff --git a/svl/source/fsstor/fsstorage.cxx b/svl/source/fsstor/fsstorage.cxx
index 54b09af60142..199c438c7ae9 100644
--- a/svl/source/fsstor/fsstorage.cxx
+++ b/svl/source/fsstor/fsstorage.cxx
@@ -223,8 +223,7 @@ void FSStorage::CopyContentToStorage_Impl(ucbhelper::Content& rContent,
uno::Any SAL_CALL FSStorage::queryInterface( const uno::Type& rType )
{
- uno::Any aReturn;
- aReturn = ::cppu::queryInterface
+ uno::Any aReturn = ::cppu::queryInterface
( rType
, static_cast<lang::XTypeProvider*> ( this )
, static_cast<embed::XStorage*> ( this )
diff --git a/svl/source/fsstor/ostreamcontainer.cxx b/svl/source/fsstor/ostreamcontainer.cxx
index 85a919df2b7c..d13beb4509d7 100644
--- a/svl/source/fsstor/ostreamcontainer.cxx
+++ b/svl/source/fsstor/ostreamcontainer.cxx
@@ -60,9 +60,7 @@ OFSStreamContainer::~OFSStreamContainer()
// XInterface
uno::Any SAL_CALL OFSStreamContainer::queryInterface( const uno::Type& rType )
{
- uno::Any aReturn;
-
- aReturn = ::cppu::queryInterface
+ uno::Any aReturn = ::cppu::queryInterface
( rType
, static_cast<lang::XTypeProvider*> ( this )
, static_cast<io::XStream*> ( this )
diff --git a/svl/source/items/itempool.cxx b/svl/source/items/itempool.cxx
index 4ac7eb7cd60d..00bc517e0c85 100644
--- a/svl/source/items/itempool.cxx
+++ b/svl/source/items/itempool.cxx
@@ -637,8 +637,7 @@ const SfxPoolItem& SfxItemPool::Put( const SfxPoolItem& rItem, sal_uInt16 nWhich
// if is already in a pool, then it is worth checking if it is in this one.
if ( IsPooledItem(&rItem) )
{
- SfxPoolItemArray_Impl::PoolItemPtrToIndexMap::const_iterator it;
- it = pItemArr->maPtrToIndex.find(const_cast<SfxPoolItem *>(&rItem));
+ auto it = pItemArr->maPtrToIndex.find(const_cast<SfxPoolItem *>(&rItem));
// 1. search for an identical pointer in the pool
if (it != pItemArr->maPtrToIndex.cend())
diff --git a/svl/source/misc/documentlockfile.cxx b/svl/source/misc/documentlockfile.cxx
index 3233852e6355..fe567d295f3f 100644
--- a/svl/source/misc/documentlockfile.cxx
+++ b/svl/source/misc/documentlockfile.cxx
@@ -214,9 +214,7 @@ LockFileEntry DocumentLockFile::GetLockData()
const sal_Int32 nBufLen = 32000;
uno::Sequence< sal_Int8 > aBuffer( nBufLen );
- sal_Int32 nRead = 0;
-
- nRead = xInput->readBytes( aBuffer, nBufLen );
+ sal_Int32 nRead = xInput->readBytes( aBuffer, nBufLen );
xInput->closeInput();
if ( nRead == nBufLen )