[Libreoffice-commits] .: cui/source
Joseph Powers
jpowers at kemper.freedesktop.org
Wed May 18 19:15:55 PDT 2011
cui/source/dialogs/insdlg.cxx | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
New commits:
commit a0c9c96adb934dc57003852ec14dc6e84e258d8a
Author: Joseph Powers <jpowers27 at cox.net>
Date: Wed May 18 18:53:58 2011 -0700
Convert SvCommandList from an OwnList to a vector<>
diff --git a/cui/source/dialogs/insdlg.cxx b/cui/source/dialogs/insdlg.cxx
index 891761f..a9eb0dc 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;
}
}
More information about the Libreoffice-commits
mailing list