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 /basctl/source/basicide/macrodlg.cxx | |
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 'basctl/source/basicide/macrodlg.cxx')
-rw-r--r-- | basctl/source/basicide/macrodlg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basctl/source/basicide/macrodlg.cxx b/basctl/source/basicide/macrodlg.cxx index 2072c74dcdcd..a8ad23249269 100644 --- a/basctl/source/basicide/macrodlg.cxx +++ b/basctl/source/basicide/macrodlg.cxx @@ -269,7 +269,7 @@ SbMethod* MacroChooser::GetMacro() if ( pEntry ) { OUString aMacroName( m_pMacroBox->GetEntryText( pEntry ) ); - pMethod = static_cast<SbMethod*>(pModule->GetMethods()->Find( aMacroName, SbxClassType::Method )); + pMethod = pModule->FindMethod( aMacroName, SbxClassType::Method ); } } return pMethod; @@ -370,7 +370,7 @@ SbMethod* MacroChooser::CreateMacro() } OUString aSubName = m_pMacroNameEdit->GetText(); - DBG_ASSERT( !pModule || !pModule->GetMethods()->Find( aSubName, SbxClassType::Method ), "Macro existiert schon!" ); + DBG_ASSERT( !pModule || !pModule->FindMethod( aSubName, SbxClassType::Method ), "Macro existiert schon!" ); pMethod = pModule ? basctl::CreateMacro( pModule, aSubName ) : nullptr; } |