diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2012-03-11 12:03:11 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-03-20 14:23:46 +0000 |
commit | e516f134fac55a14b155fea70064e1c0553ea50c (patch) | |
tree | cfb6f8f07e488a52ac58ad175d7fa9e9bf3831cf /idl/source/objects/slot.cxx | |
parent | dbd9198aa9d325dd5bbeb110cc8a3db57838d1e6 (diff) |
Convert tools/table.hxx usage to std::map in IDL module
Along the way, convert the table parameter passing to using references since we are never passing
a null pointer.
Diffstat (limited to 'idl/source/objects/slot.cxx')
-rw-r--r-- | idl/source/objects/slot.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index f180719786a5..bec2e795baf6 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -1496,12 +1496,12 @@ sal_uInt16 SvMetaSlot::WriteSlotMap( const rtl::OString& rShellName, sal_uInt16 } void SvMetaSlot::WriteHelpId( SvIdlDataBase & rBase, SvStream & rOutStm, - Table * pTable ) + HelpIdTable& rTable ) { sal_uLong nSId = GetSlotId().GetValue(); - if( !pTable->IsKeyValid( nSId ) ) + if( rTable.find( nSId ) == rTable.end() ) { - pTable->Insert( nSId, this ); + rTable[ nSId ] = this; rOutStm << "#define " << GetSlotId().getString().getStr() << '\t' << rtl::OString::valueOf(static_cast<sal_Int32>(nSId)).getStr() << endl; @@ -1533,9 +1533,9 @@ void SvMetaSlot::WriteHelpId( SvIdlDataBase & rBase, SvStream & rOutStm, } // if id not found, write always - if( !bIdOk || !pTable->IsKeyValid( nSId2 ) ) + if( !bIdOk || rTable.find( nSId2 ) == rTable.end() ) { - pTable->Insert( nSId2, this ); + rTable[ nSId2 ] = this; rOutStm << "#define " << aSId.getStr() << '\t' << rtl::OString::valueOf( |