From bfc1600c6ade6f006eb774bffe7caa9c948e8603 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 22 Jun 2021 10:21:21 +0200 Subject: loplugin:indentation improve checks for brace alignment Change-Id: I333100fda7e181f68f36b03279b3fbb8cb768310 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117615 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlhelp/source/cxxhelp/provider/databases.cxx | 4 ++-- xmlhelp/source/treeview/tvread.cxx | 16 ++++++++-------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'xmlhelp') diff --git a/xmlhelp/source/cxxhelp/provider/databases.cxx b/xmlhelp/source/cxxhelp/provider/databases.cxx index 439d45e790f3..37eb36b78d43 100644 --- a/xmlhelp/source/cxxhelp/provider/databases.cxx +++ b/xmlhelp/source/cxxhelp/provider/databases.cxx @@ -94,7 +94,7 @@ OUString Databases::expandURL( const OUString& aURL, const Reference< uno::XComp xFac = uri::UriReferenceFactory::create( xContext ); xMacroExpander = util::theMacroExpander::get(xContext); - } + } OUString aRetURL = aURL; if( xMacroExpander.is() ) @@ -112,7 +112,7 @@ OUString Databases::expandURL( const OUString& aURL, const Reference< uno::XComp aRetURL = sxUri->expand( xMacroExpander ); } } - } + } return aRetURL; } diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index 83505b36608b..3b7ecf190cc6 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -680,7 +680,7 @@ ConfigData TVChildTarget::init( const Reference< XComponentContext >& xContext ) aDirItem.getFileStatus( aFileStatus ) == osl::FileBase::E_None && aFileStatus.isValid( osl_FileStatus_Mask_FileURL ) && aFileStatus.isValid( osl_FileStatus_Mask_FileName ) ) - { + { aFileUrl = aFileStatus.getFileURL(); aFileName = aFileStatus.getFileName(); int idx_ = aFileName.lastIndexOf( '.' ); @@ -694,7 +694,7 @@ ConfigData TVChildTarget::init( const Reference< XComponentContext >& xContext ) ( str[idx_ + 2] == 'r' || str[idx_ + 2] == 'R' ) && ( str[idx_ + 3] == 'e' || str[idx_ + 3] == 'E' ) && ( str[idx_ + 4] == 'e' || str[idx_ + 4] == 'E' ) ) - { + { OUString baseName = aFileName.copy(0,idx_).toAsciiLowerCase(); if(! showBasic && baseName == "sbasic" ) continue; @@ -709,8 +709,8 @@ ConfigData TVChildTarget::init( const Reference< XComponentContext >& xContext ) configData.vFileURL.push_back( aFileUrl ); aFile.close(); } - } - } + } + } aDirectory.close(); } @@ -806,8 +806,8 @@ TVChildTarget::getBooleanKey(const Reference< XHierarchicalNameAccess >& xHierAccess, const char* key) { - bool ret = false; - if( xHierAccess.is() ) + bool ret = false; + if( xHierAccess.is() ) { Any aAny; try @@ -821,7 +821,7 @@ TVChildTarget::getBooleanKey(const Reference< } aAny >>= ret; } - return ret; + return ret; } void TVChildTarget::subst( OUString& instpath ) @@ -1088,7 +1088,7 @@ OUString TreeFileIterator::expandURL( const OUString& aURL ) xFac = uri::UriReferenceFactory::create( m_xContext ); xMacroExpander = util::theMacroExpander::get(m_xContext); - } + } OUString aRetURL = aURL; Reference< uri::XUriReference > uriRef; -- cgit