diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2016-04-24 21:00:05 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-12 07:43:03 +0000 |
commit | c0d7dfa56c8a335bdea1be2ddce33a0f19b28bbd (patch) | |
tree | a85d66e5a7bbc902898fc4322f687275ca51d9d0 /sfx2 | |
parent | 2ed5fa14f0e7624db241fde26e10fdd1009adfc7 (diff) |
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.cxx | 2 |
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(); |