diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-01-01 08:09:16 -0800 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-01-01 08:09:16 -0800 |
commit | b72a0418983887aa45ced173a70a820402e41f9a (patch) | |
tree | 0cc0dad396ee79a79ac9f4bf2eb709ed344411ad /cui | |
parent | 7f56b38a288a5d1d572f6d885c2a115debbbc8ea (diff) |
Remove DECLARE_LIST( _SfxEventNamesList, SfxEventName* )
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/macroass.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cui/source/tabpages/macroass.cxx b/cui/source/tabpages/macroass.cxx index 0fc4235d98ba..49cc40676710 100644 --- a/cui/source/tabpages/macroass.cxx +++ b/cui/source/tabpages/macroass.cxx @@ -280,9 +280,9 @@ void _SfxMacroTabPage::PageCreated (SfxAllItemSet aSet) { mpImpl->bGotEvents = TRUE; const SfxEventNamesList& rList = ((SfxEventNamesItem*)pEventsItem)->GetEvents(); - for ( USHORT nNo = 0; nNo < rList.Count(); ++nNo ) + for ( size_t nNo = 0, nCnt = rList.size(); nNo < nCnt; ++nNo ) { - const SfxEventName *pOwn = rList.GetObject(nNo); + const SfxEventName *pOwn = rList.at(nNo); AddEvent( pOwn->maUIName, pOwn->mnId ); } } @@ -299,9 +299,9 @@ void _SfxMacroTabPage::Reset( const SfxItemSet& rSet ) { mpImpl->bGotEvents = TRUE; const SfxEventNamesList& rList = ((SfxEventNamesItem*)pEventsItem)->GetEvents(); - for ( USHORT nNo = 0; nNo < rList.Count(); ++nNo ) + for ( size_t nNo = 0, nCnt = rList.size(); nNo < nCnt; ++nNo ) { - const SfxEventName *pOwn = rList.GetObject(nNo); + const SfxEventName *pOwn = rList.at(nNo); AddEvent( pOwn->maUIName, pOwn->mnId ); } } |