From 57abe41e392e37d4b3de3f4f355a10ba645cee55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Thu, 9 Sep 2004 08:38:15 +0000 Subject: [PATCH] INTEGRATION: CWS insight02 (1.19.2); FILE MERGED 2004/08/11 12:17:22 oj 1.19.2.1: #i27015# fill container with dummies --- dbaccess/source/core/api/querycontainer.cxx | 22 +++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/dbaccess/source/core/api/querycontainer.cxx b/dbaccess/source/core/api/querycontainer.cxx index 4ba3825250d8..f271d856f59a 100644 --- a/dbaccess/source/core/api/querycontainer.cxx +++ b/dbaccess/source/core/api/querycontainer.cxx @@ -2,9 +2,9 @@ * * $RCSfile: querycontainer.cxx,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: hr $ $Date: 2004-08-02 15:03:38 $ + * last change: $Author: rt $ $Date: 2004-09-09 09:38:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -145,14 +145,16 @@ OQueryContainer::OQueryContainer( DBG_ASSERT(xContainer.is(), "OQueryContainer::OQueryContainer : the CommandDefinitions container is invalid !"); xContainer->addContainerListener(m_pCommandsListener); -// // fill my structures with dummies -// Sequence< ::rtl::OUString > sDefinitionNames = m_xCommandDefinitions->getElementNames(); -// const ::rtl::OUString* pIter = sDefinitionNames.getConstArray(); -// const ::rtl::OUString* pEnd = pIter + sDefinitionNames.getLength(); -// for (;pIter != pEnd; ++pIter) -// { -// implAppend(*pIter,Reference< XContent >()); -// } + // fill my structures + ODefinitionContainer_Impl* pItem = static_cast(m_pImpl.get()); + Sequence< ::rtl::OUString > sDefinitionNames = m_xCommandDefinitions->getElementNames(); + const ::rtl::OUString* pIter = sDefinitionNames.getConstArray(); + const ::rtl::OUString* pEnd = pIter + sDefinitionNames.getLength(); + for (;pIter != pEnd; ++pIter) + { + pItem->m_aDocumentMap.insert(ODefinitionContainer_Impl::Documents::value_type(*pIter,TContentPtr())); + m_aDocuments.push_back(m_aDocumentMap.insert(Documents::value_type(*pIter,Documents::mapped_type())).first); + } } decrement(m_refCount); }