diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-05-18 18:53:58 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-05-18 19:10:25 -0700 |
commit | 639f9c682b74981f83d88969b7f06295b080758a (patch) | |
tree | 5585c74b6e0fa96e7a6df12ecc65815b54829311 /cui | |
parent | 6824a61f47b78dde60818e177e55f22e23022c29 (diff) |
Convert SvCommandList from an OwnList to a vector<>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/insdlg.cxx | 10 |
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; } } |