diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 08:21:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-13 14:46:45 +0200 |
commit | 8feca893a902abe3c238403f0a1f59a24fb24926 (patch) | |
tree | 92e4308d2562c9ca48920f20c87a78c07a635740 /extensions | |
parent | fd6d01c95594746602090972d5edabe1b9f281c3 (diff) |
loplugin:sequentialassign in editeng..extensions
Change-Id: I95c6fb5e2ddc1c2d8a2fb1d5ff30b18ddad48b3a
Reviewed-on: https://gerrit.libreoffice.org/70699
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/bibliography/datman.cxx | 4 | ||||
-rw-r--r-- | extensions/source/update/check/updatehdl.cxx | 3 |
2 files changed, 2 insertions, 5 deletions
diff --git a/extensions/source/bibliography/datman.cxx b/extensions/source/bibliography/datman.cxx index 19413d9f5ba6..2eedd1a7583e 100644 --- a/extensions/source/bibliography/datman.cxx +++ b/extensions/source/bibliography/datman.cxx @@ -902,9 +902,7 @@ void BibDataManager::startQueryWith(const OUString& rQuery) aQueryString+=getQueryField(); aQueryString+=aQuoteChar; aQueryString+=" like '"; - OUString sQuery(rQuery); - sQuery = sQuery.replaceAll("?","_"); - sQuery = sQuery.replaceAll("*","%"); + OUString sQuery = rQuery.replaceAll("?","_").replaceAll("*","%"); aQueryString += sQuery; aQueryString+="%'"; } diff --git a/extensions/source/update/check/updatehdl.cxx b/extensions/source/update/check/updatehdl.cxx index 6fa8e25a1441..dfe09b68644b 100644 --- a/extensions/source/update/check/updatehdl.cxx +++ b/extensions/source/update/check/updatehdl.cxx @@ -790,8 +790,7 @@ void UpdateHandler::setFullVersion( OUString& rString ) uno::Sequence< uno::Any > aArgumentList( 1 ); aArgumentList[0] <<= aProperty; - uno::Reference< uno::XInterface > xConfigAccess; - xConfigAccess = xConfigurationProvider->createInstanceWithArguments( "com.sun.star.configuration.ConfigurationAccess", + uno::Reference< uno::XInterface > xConfigAccess = xConfigurationProvider->createInstanceWithArguments( "com.sun.star.configuration.ConfigurationAccess", aArgumentList ); uno::Reference< container::XNameAccess > xNameAccess( xConfigAccess, uno::UNO_QUERY_THROW ); |