diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-22 10:21:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-28 10:47:34 +0200 |
commit | bfc1600c6ade6f006eb774bffe7caa9c948e8603 (patch) | |
tree | c660fa18fc6a9e5f05c3cc58fa34411cdc4f4257 /xmlhelp/source/treeview/tvread.cxx | |
parent | f9514beb9bfed51aee69227797e74504afed31c6 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlhelp/source/treeview/tvread.cxx')
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
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; |