summaryrefslogtreecommitdiff
path: root/basic/source/classes
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 /basic/source/classes
parent2ed5fa14f0e7624db241fde26e10fdd1009adfc7 (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 'basic/source/classes')
-rw-r--r--basic/source/classes/sbxmod.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index 375678fd0932..ef6a6797c93b 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -579,6 +579,12 @@ SbMethod* SbModule::GetMethod( const OUString& rName, SbxDataType t )
return pMeth;
}
+SbMethod* SbModule::FindMethod( const OUString& rName, SbxClassType t )
+{
+ return dynamic_cast<SbMethod*> (pMethods->Find( rName, t ));
+}
+
+
// request/create property
SbProperty* SbModule::GetProperty( const OUString& rName, SbxDataType t )