diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-08 13:28:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-08 14:00:39 +0200 |
commit | afa1779d27da31ef0d5084306db8dc955689a78f (patch) | |
tree | 2ae08887ffb11dbe5641b2519bd89a51fac3fdf7 /idl/source | |
parent | d61b45016ee4048068b8410c5e2635e8d84f9849 (diff) |
simplify getMangleName()
Change-Id: I811acbbb88d8d9639001d7b9af6b0d4a66a80656
Diffstat (limited to 'idl/source')
-rw-r--r-- | idl/source/objects/slot.cxx | 13 | ||||
-rw-r--r-- | idl/source/objects/types.cxx | 5 |
2 files changed, 5 insertions, 13 deletions
diff --git a/idl/source/objects/slot.cxx b/idl/source/objects/slot.cxx index 500715c06b0f..6c767edfb57b 100644 --- a/idl/source/objects/slot.cxx +++ b/idl/source/objects/slot.cxx @@ -93,14 +93,11 @@ bool SvMetaSlot::IsMethod() const return b; } -OString SvMetaSlot::GetMangleName( bool bVariable ) const +OString SvMetaSlot::GetMangleName() const { - if( !bVariable ) - { - SvMetaAttribute * pMeth = GetMethod(); - if( pMeth ) - return pMeth->GetName(); - } + SvMetaAttribute * pMeth = GetMethod(); + if( pMeth ) + return pMeth->GetName(); return GetName(); } @@ -871,7 +868,7 @@ void SvMetaSlot::WriteSlot( const OString& rShellName, sal_uInt16 nCount, { rOutStm.WriteCharPtr( ",\"" ); - rOutStm.WriteCharPtr( GetMangleName( false ).getStr() ); + rOutStm.WriteCharPtr( GetMangleName().getStr() ); rOutStm.WriteCharPtr( "\"" ); } diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx index 4707344347d9..214403161ba0 100644 --- a/idl/source/objects/types.cxx +++ b/idl/source/objects/types.cxx @@ -63,11 +63,6 @@ bool SvMetaAttribute::IsVariable() const return pType->GetType() != MetaTypeType::Method; } -OString SvMetaAttribute::GetMangleName( bool ) const -{ - return GetName(); -} - bool SvMetaAttribute::Test( SvIdlDataBase & rBase, SvTokenStream & rInStm ) { |