diff options
-rw-r--r-- | extensions/source/resource/ResourceIndexAccess.cxx | 6 | ||||
-rw-r--r-- | extensions/source/resource/ResourceIndexAccess.hxx | 3 |
2 files changed, 2 insertions, 7 deletions
diff --git a/extensions/source/resource/ResourceIndexAccess.cxx b/extensions/source/resource/ResourceIndexAccess.cxx index f8a35b859388..6f24b2be682e 100644 --- a/extensions/source/resource/ResourceIndexAccess.cxx +++ b/extensions/source/resource/ResourceIndexAccess.cxx @@ -97,9 +97,6 @@ Any SAL_CALL ResourceIndexAccess::getByName(const OUString& aName) case 0: xResult.set(new ResourceStringIndexAccess(m_pResMgr)); break; - case 1: - xResult.set(new ResourceStringListIndexAccess(m_pResMgr)); - break; default: throw NoSuchElementException(); } @@ -112,9 +109,8 @@ Sequence<OUString> SAL_CALL ResourceIndexAccess::getElementNames( ) static Sequence<OUString> aResult; if( aResult.getLength() == 0) { - aResult.realloc(2); + aResult.realloc(1); aResult[0] = "String"; - aResult[1] = "StringList"; } return aResult; } diff --git a/extensions/source/resource/ResourceIndexAccess.hxx b/extensions/source/resource/ResourceIndexAccess.hxx index 4e8421517fd0..fb466f863122 100644 --- a/extensions/source/resource/ResourceIndexAccess.hxx +++ b/extensions/source/resource/ResourceIndexAccess.hxx @@ -32,9 +32,8 @@ namespace extensions { namespace resource /** The ctor takes a sequence with one element: the name of the resource, e.g. svt */ ResourceIndexAccess(css::uno::Sequence< css::uno::Any> const& rArgs, css::uno::Reference< css::uno::XComponentContext> const&); // XNameAccess - // The XNameAccess provides access to two named elements: + // The XNameAccess provides access to one named elements: // "String" returns a XIndexAccess to String resources - // "StringList" returns a XIndexAccess to StringList/StringArray resources virtual css::uno::Any SAL_CALL getByName( const OUString& aName ) throw (css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override; virtual css::uno::Sequence< OUString > SAL_CALL getElementNames( ) throw (css::uno::RuntimeException, std::exception) override; virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) throw (css::uno::RuntimeException, std::exception) override; |