diff options
Diffstat (limited to 'scripting')
-rw-r--r-- | scripting/source/basprov/basprov.cxx | 8 | ||||
-rw-r--r-- | scripting/source/provider/BrowseNodeFactoryImpl.cxx | 14 |
2 files changed, 11 insertions, 11 deletions
diff --git a/scripting/source/basprov/basprov.cxx b/scripting/source/basprov/basprov.cxx index 999b88509df0..6273ddfe2555 100644 --- a/scripting/source/basprov/basprov.cxx +++ b/scripting/source/basprov/basprov.cxx @@ -499,7 +499,7 @@ namespace basprov const ::rtl::OUString* pLibNames = aLibNames.getConstArray(); aChildNodes.realloc( nLibCount ); Reference< browse::XBrowseNode >* pChildNodes = aChildNodes.getArray(); - sal_Int32 childsFound = 0; + sal_Int32 childrenFound = 0; for ( sal_Int32 i = 0 ; i < nLibCount ; ++i ) { @@ -516,13 +516,13 @@ namespace basprov } if ( bCreate ) { - pChildNodes[childsFound++] = static_cast< browse::XBrowseNode* >( new BasicLibraryNodeImpl( + pChildNodes[childrenFound++] = static_cast< browse::XBrowseNode* >( new BasicLibraryNodeImpl( m_xContext, m_sScriptingContext, pBasicManager, xLibContainer, pLibNames[i], m_bIsAppScriptCtx ) ); } } - if ( childsFound != nLibCount ) - aChildNodes.realloc( childsFound ); + if ( childrenFound != nLibCount ) + aChildNodes.realloc( childrenFound ); } return aChildNodes; diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx index cfe7c6dae23a..abd7b7adca12 100644 --- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx +++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx @@ -104,12 +104,12 @@ public: for ( sal_Int32 i = 0; i < m_Nodes.getLength(); i++ ) { - Sequence< Reference < browse::XBrowseNode > > childs; + Sequence< Reference < browse::XBrowseNode > > children; try { - childs = m_Nodes[ i ]->getChildNodes(); - seqs.push_back( childs ); - numChildren += childs.getLength(); + children = m_Nodes[ i ]->getChildNodes(); + seqs.push_back( children ); + numChildren += children.getLength(); } catch ( Exception& ) { @@ -124,10 +124,10 @@ public: Sequence< Reference < browse::XBrowseNode > > result( numChildren ); for ( sal_Int32 index = 0; it != it_end && index < numChildren ; ++it ) { - Sequence< Reference < browse::XBrowseNode > > childs = *it; - for ( sal_Int32 j = 0; j < childs.getLength(); j++ ) + Sequence< Reference < browse::XBrowseNode > > children = *it; + for ( sal_Int32 j = 0; j < children.getLength(); j++ ) { - result[ index++ ] = childs[ j ]; + result[ index++ ] = children[ j ]; } } return result; |