diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-29 14:12:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-02 12:09:56 +0200 |
commit | 6ef9f7e2025a2334034e9c8f7b3422220add4742 (patch) | |
tree | a97096df0d2627574f685ed37b3abbe296833538 /xmlhelp | |
parent | acd4ecc38fc3aa486b7eaf8d5effa4a5ea034ccd (diff) |
loplugin:loopvartoosmall
Change-Id: Ib4def3435eab4625645c5afe3b151f9f430564ac
Diffstat (limited to 'xmlhelp')
-rw-r--r-- | xmlhelp/source/treeview/tvread.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xmlhelp/source/treeview/tvread.cxx b/xmlhelp/source/treeview/tvread.cxx index 551847002ccd..1954335ec783 100644 --- a/xmlhelp/source/treeview/tvread.cxx +++ b/xmlhelp/source/treeview/tvread.cxx @@ -56,7 +56,7 @@ namespace treeview { ~TVDom() { - for( unsigned i = 0; i < children.size(); ++i ) + for( size_t i = 0; i < children.size(); ++i ) delete children[i]; } @@ -399,7 +399,7 @@ extern "C" void data_handler( void *userData, TVChildTarget::TVChildTarget( const ConfigData& configData,TVDom* tvDom ) { Elements.resize( tvDom->children.size() ); - for( unsigned i = 0; i < Elements.size(); ++i ) + for( size_t i = 0; i < Elements.size(); ++i ) Elements[i] = new TVRead( configData,tvDom->children[i] ); } @@ -445,7 +445,7 @@ TVChildTarget::TVChildTarget( const Reference< XComponentContext >& xContext ) // now TVDom holds the relevant information Elements.resize( tvDom.children.size() ); - for( unsigned i = 0; i < Elements.size(); ++i ) + for( size_t i = 0; i < Elements.size(); ++i ) Elements[i] = new TVRead( configData,tvDom.children[i] ); } @@ -470,7 +470,7 @@ void TVChildTarget::Check(TVDom* tvDom) { TVDom* p = tvDom->children[tvDom->children.size()-1]; - for(unsigned k=0; k<p->children.size(); ++k) + for(size_t k=0; k<p->children.size(); ++k) if (!SearchAndInsert(p->children[k], tvDom->children[i])) tvDom->children[i]->newChild(p->children[k]); tvDom->children.pop_back(); @@ -547,7 +547,7 @@ TVChildTarget::getElementNames( ) throw( RuntimeException, std::exception ) { Sequence< OUString > seq( Elements.size() ); - for( unsigned i = 0; i < Elements.size(); ++i ) + for( size_t i = 0; i < Elements.size(); ++i ) seq[i] = OUString::number( 1+i ); return seq; |