diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-10 12:30:22 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-02-11 07:01:24 +0100 |
commit | 743d5604c22e2c599ec22c1afd8c7c02388d575f (patch) | |
tree | 6679a10446e504b108449f1e4fb53df66034aa51 /xmlhelp | |
parent | 2fab2c9d494035cc55d0bc56a47e784be6e64510 (diff) |
loplugin:indentation in writerfilter..xmloff
Change-Id: Ibda157508e92ab5fb222daf79a38941c30a8057e
Reviewed-on: https://gerrit.libreoffice.org/67611
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/content.cxx | 2 | ||||
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/resultsetforquery.cxx | 2 | ||||
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 36 |
3 files changed, 20 insertions, 20 deletions
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((i<tvDom->children.size()-1) && (!h)) + while((i<tvDom->children.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<TVDom> tmp(SearchAndInsert(std::move(k), tvDom->children[i].get())); + if (tmp) { - std::unique_ptr<TVDom> 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<TVDom> @@ -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=" + |