From 743d5604c22e2c599ec22c1afd8c7c02388d575f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 10 Feb 2019 12:30:22 +0200 Subject: loplugin:indentation in writerfilter..xmloff Change-Id: Ibda157508e92ab5fb222daf79a38941c30a8057e Reviewed-on: https://gerrit.libreoffice.org/67611 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmlhelp/source/cxxhelp/provider/content.cxx | 2 +- .../source/cxxhelp/provider/resultsetforquery.cxx | 2 +- xmlhelp/source/treeview/tvread.cxx | 36 +++++++++++----------- 3 files changed, 20 insertions(+), 20 deletions(-) (limited to 'xmlhelp') diff --git a/xmlhelp/source/cxxhelp/provider/content.cxx b/xmlhelp/source/cxxhelp/provider/content.cxx index d64ea70f5bc9..33a6bc6bf4cf 100644 --- a/xmlhelp/source/cxxhelp/provider/content.cxx +++ b/xmlhelp/source/cxxhelp/provider/content.cxx @@ -73,7 +73,7 @@ Content::~Content() uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType ) { uno::Any aRet; - return aRet.hasValue() ? aRet : ContentImplHelper::queryInterface( rType ); + return aRet.hasValue() ? aRet : ContentImplHelper::queryInterface( rType ); } // XTypeProvider methods. diff --git a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx index 90ed9a015e5d..eac4adc7a39e 100644 --- a/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx +++ b/xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx @@ -297,7 +297,7 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< uno::XComponentConte { OUString aURL = aCompleteResultVector[r]; OUString aResultStr = replWith + aURL.copy(replIdx); - m_aPath.push_back( aResultStr ); + m_aPath.push_back( aResultStr ); } m_aItems.resize( m_aPath.size() ); diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index c81a31bab743..325e06feac8c 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -440,30 +440,30 @@ void TVChildTarget::Check(TVDom* tvDom) return; } - unsigned i = 0; - bool h = false; + unsigned i = 0; + bool h = false; - while((ichildren.size()-1) && (!h)) + while((ichildren.size()-1) && (!h)) + { + if (((tvDom->children[i])->application == (tvDom->children[tvDom->children.size()-1])->application) && + ((tvDom->children[i])->id == (tvDom->children[tvDom->children.size()-1])->id)) { - if (((tvDom->children[i])->application == (tvDom->children[tvDom->children.size()-1])->application) && - ((tvDom->children[i])->id == (tvDom->children[tvDom->children.size()-1])->id)) - { - TVDom* p = tvDom->children.back().get(); + TVDom* p = tvDom->children.back().get(); - for(auto & k : p->children) + for(auto & k : p->children) + { + std::unique_ptr tmp(SearchAndInsert(std::move(k), tvDom->children[i].get())); + if (tmp) { - std::unique_ptr tmp(SearchAndInsert(std::move(k), tvDom->children[i].get())); - if (tmp) - { - tvDom->children[i]->newChild(std::move(tmp)); - } + tvDom->children[i]->newChild(std::move(tmp)); } - - tvDom->children.pop_back(); - h = true; } - ++i; + + tvDom->children.pop_back(); + h = true; } + ++i; + } } std::unique_ptr @@ -733,7 +733,7 @@ ConfigData TVChildTarget::init( const Reference< XComponentContext >& xContext ) configData.m_vReplacement[1] = productVersion; // m_vReplacement[2...4] (vendorName/-Version/-Short) are empty strings - configData.system = system; + configData.system = system; configData.locale = locale; configData.appendix = "?Language=" + -- cgit