summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorJoseph Powers <jpowers27@cox.net>2011-05-18 18:53:58 -0700
committerJoseph Powers <jpowers27@cox.net>2011-05-18 19:10:25 -0700
commit639f9c682b74981f83d88969b7f06295b080758a (patch)
tree5585c74b6e0fa96e7a6df12ecc65815b54829311 /cui
parent6824a61f47b78dde60818e177e55f22e23022c29 (diff)
Convert SvCommandList from an OwnList to a vector<>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/dialogs/insdlg.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx
index 891761fcf368..a9eb0dcd4fac 100644
--- a/cui/source/dialogs/insdlg.cxx
+++ b/cui/source/dialogs/insdlg.cxx
@@ -475,15 +475,13 @@ static void Plugin_ImplFillCommandSequence( const String& aCommands, uno::Sequen
SvCommandList aLst;
aLst.AppendCommands( aCommands, &nEaten );
- const sal_Int32 nCount = aLst.Count();
+ const size_t nCount = aLst.size();
aCommandSequence.realloc( nCount );
- for( sal_Int32 nIndex = 0; nIndex < nCount; nIndex++ )
+ for( size_t nIndex = 0; nIndex < nCount; nIndex++ )
{
- const SvCommand& rCommand = aLst[ nIndex ];
-
- aCommandSequence[nIndex].Name = rCommand.GetCommand();
+ aCommandSequence[nIndex].Name = aLst[ nIndex ].GetCommand();
aCommandSequence[nIndex].Handle = -1;
- aCommandSequence[nIndex].Value = makeAny( OUString( rCommand.GetArgument() ) );
+ aCommandSequence[nIndex].Value = makeAny( OUString( aLst[ nIndex ].GetArgument() ) );
aCommandSequence[nIndex].State = beans::PropertyState_DIRECT_VALUE;
}
}