summaryrefslogtreecommitdiff
path: root/idl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-02-08 13:28:49 +0200
committerNoel Grandin <noel@peralex.com>2016-02-08 14:00:39 +0200
commitafa1779d27da31ef0d5084306db8dc955689a78f (patch)
tree2ae08887ffb11dbe5641b2519bd89a51fac3fdf7 /idl/source
parentd61b45016ee4048068b8410c5e2635e8d84f9849 (diff)
simplify getMangleName()
Change-Id: I811acbbb88d8d9639001d7b9af6b0d4a66a80656
Diffstat (limited to 'idl/source')
-rw-r--r--idl/source/objects/slot.cxx13
-rw-r--r--idl/source/objects/types.cxx5
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 )
{