summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-08-12 10:34:03 -0400
committerKohei Yoshida <kohei.yoshida@suse.com>2011-08-16 21:22:42 -0400
commitd2e538a63507aa3310a854d5c1414565efa3a361 (patch)
tree5ad9bc6fcc2db39fcc5604d396bddf63d962ab05 /forms
parent4fae740db79d4e7cc97440e2bab8d1ef612d9b51 (diff)
Slightly changed the API.
Diffstat (limited to 'forms')
-rw-r--r--forms/source/misc/InterfaceContainer.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/forms/source/misc/InterfaceContainer.cxx b/forms/source/misc/InterfaceContainer.cxx
index 1301c08c255d..e908d75472c1 100644
--- a/forms/source/misc/InterfaceContainer.cxx
+++ b/forms/source/misc/InterfaceContainer.cxx
@@ -149,12 +149,8 @@ void OInterfaceContainer::impl_addVbEvents_nolck_nothrow( const sal_Int32 i_nIn
break;
rtl::OUString sCodeName;
- {
- Reference<XInterface> xThis = static_cast<XContainer*>(this);
- sal_Int32 nPageIndex = xNameQuery->getPageIndexForObject(xThis);
- if (nPageIndex >= 0)
- sCodeName = xNameQuery->getCodeNameByIndex(nPageIndex);
- }
+ Reference<XInterface> xThis = static_cast<XContainer*>(this);
+ sCodeName = xNameQuery->getCodeNameForObject(xThis, xElement);
Reference< XPropertySet > xProps( xElement, UNO_QUERY_THROW );
::rtl::OUString sServiceName;