summaryrefslogtreecommitdiffstats
path: root/sfx2
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2016-04-24 21:00:05 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-12 07:43:03 +0000
commitc0d7dfa56c8a335bdea1be2ddce33a0f19b28bbd (patch)
treea85d66e5a7bbc902898fc4322f687275ca51d9d0 /sfx2
parentremove some unnecessary casting (diff)
downloadcore-c0d7dfa56c8a335bdea1be2ddce33a0f19b28bbd.tar.gz
core-c0d7dfa56c8a335bdea1be2ddce33a0f19b28bbd.zip
BASIC : Add SbModule::FindMethod
Change-Id: I3418c4a3d24b3b6630d6c80a6c8aa9d4ffb7e73a Reviewed-on: https://gerrit.libreoffice.org/24346 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewfrm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx
index fc96248549f7..28ea8f5dba9c 100644
--- a/sfx2/source/view/viewfrm.cxx
+++ b/sfx2/source/view/viewfrm.cxx
@@ -2550,7 +2550,7 @@ void SfxViewFrame::AddDispatchMacroToBasic_Impl( const OUString& sMacro )
if ( pBasic )
{
SbModule* pModule = pBasic->FindModule( aModuleName );
- SbMethod* pMethod = pModule ? static_cast<SbMethod*>(pModule->GetMethods()->Find(aMacroName, SbxClassType::Method)) : nullptr;
+ SbMethod* pMethod = pModule ? pModule->FindMethod(aMacroName, SbxClassType::Method) : nullptr;
if (pMethod)
{
aOUSource = pModule->GetSource32();