summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorDaniel Rentz <dr@openoffice.org>2010-08-04 09:59:00 +0200
committerDaniel Rentz <dr@openoffice.org>2010-08-04 09:59:00 +0200
commit84a60bade63e78c873a5fa124ccf16050b147d09 (patch)
tree17abb4097efa6fc28e74e646456bca2a95c4906d /sc
parent0140f7e96cc04269253d8e60894fa0f7ee892154 (diff)
mib18: #163198# VBA Names collection must return VBA Name objects
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/vba/vbanames.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/sc/source/ui/vba/vbanames.cxx b/sc/source/ui/vba/vbanames.cxx
index 2304874bdb1b..9fd22bf89f7a 100644
--- a/sc/source/ui/vba/vbanames.cxx
+++ b/sc/source/ui/vba/vbanames.cxx
@@ -173,11 +173,6 @@ ScVbaNames::getElementType() throw( css::uno::RuntimeException )
uno::Reference< container::XEnumeration >
ScVbaNames::createEnumeration() throw (uno::RuntimeException)
{
- if ( mxNames.is() )
- {
- uno::Reference< container::XEnumerationAccess > xAccess( m_xIndexAccess, uno::UNO_QUERY_THROW );
- return xAccess->createEnumeration();
- }
uno::Reference< container::XEnumerationAccess > xEnumAccess( mxNames, uno::UNO_QUERY_THROW );
return new NamesEnumeration( this, mxContext, xEnumAccess->createEnumeration(), mxModel , mxNames );
}