summaryrefslogtreecommitdiffstats
path: root/basic
diff options
context:
space:
mode:
Diffstat (limited to 'basic')
-rw-r--r--basic/source/runtime/runtime.cxx14
1 files changed, 3 insertions, 11 deletions
diff --git a/basic/source/runtime/runtime.cxx b/basic/source/runtime/runtime.cxx
index b6e64fbb3c35..2d7b988d7647 100644
--- a/basic/source/runtime/runtime.cxx
+++ b/basic/source/runtime/runtime.cxx
@@ -3754,17 +3754,9 @@ SbxBase* SbiRuntime::FindElementExtern( const OUString& rName )
}
if ( !pElem && pMeth )
{
- const OUString aMethName = pMeth->GetName();
- // tdf#57308 - check if the name is the current method instance
- if (pMeth->GetName() == rName)
- {
- pElem = pMeth;
- }
- else
- {
- // for statics, set the method's name in front
- pElem = pMod->Find(aMethName + ":" + rName, SbxClassType::DontCare);
- }
+ // for statics, set the method's name in front
+ OUString aMethName = pMeth->GetName() + ":" + rName;
+ pElem = pMod->Find(aMethName, SbxClassType::DontCare);
}
// search in parameter list