summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorMichael T. Whiteley <mike@whiteley.org>2011-12-07 02:33:51 -0800
committerTor Lillqvist <tlillqvist@suse.com>2011-12-08 11:32:41 +0200
commitdcfd4beb213c551f6ef6ba379651bf303bd9017a (patch)
treea819f50716357c2a5561f6b9a09809cfc52d7dbf /scripting
parentad2eb6c4ba3ca36e2302c721a106dac80d266325 (diff)
childs -> children
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/basprov/basprov.cxx8
-rw-r--r--scripting/source/provider/BrowseNodeFactoryImpl.cxx14
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;