diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2021-10-26 07:10:29 +0200 |
---|---|---|
committer | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2021-10-26 08:05:27 +0200 |
commit | 514e83a0a548e61753b1238f55ee929c3c799eed (patch) | |
tree | 85cfa33fd619379a22be881396c9f7eb576c0a7b /basic | |
parent | d46f659c7524625474f0bb907805e285ee27d5ec (diff) |
Revert "tdf#57308 - Basic IDE: Watching of a variable does not work"
This reverts commit f9ce4b2d04b58843d7986acd9382864b0b30d617.
Reason for revert: Cast to SbxVsriable instead of SbxMethod causes the code to start over
Change-Id: I8f00f8f13faef8cb8c6db4e8c2a096a921f8714b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124187
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/runtime.cxx | 14 |
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 |