From 8f59317223e0b8e1e5e6e4145b6ee457fe9e15f3 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 13 Apr 2019 21:27:47 +0200 Subject: loplugin:sequentialassign in starmath..svl Change-Id: I95d7b67cd8b6b68c087ff96fdb6bb283ab8b49ec Reviewed-on: https://gerrit.libreoffice.org/70718 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/fsstor/fsfactory.cxx | 4 +--- svl/source/fsstor/fsstorage.cxx | 3 +-- svl/source/fsstor/ostreamcontainer.cxx | 4 +--- 3 files changed, 3 insertions(+), 8 deletions(-) (limited to 'svl/source/fsstor') 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 ( this ) , static_cast ( 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 ( this ) , static_cast ( this ) -- cgit