summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/package/pkgdatasupplier.cxx
diff options
context:
space:
mode:
authorKai Sommerfeld <kso@openoffice.org>2000-11-29 13:16:26 +0000
committerKai Sommerfeld <kso@openoffice.org>2000-11-29 13:16:26 +0000
commit36ea7b82cef986576d7f880fa7f5ebdaa7d90632 (patch)
tree47ed4bfde9937a74271e5c564451001d83a96bdd /ucb/source/ucp/package/pkgdatasupplier.cxx
parented7c27ea0dfbfe46bb467ac7820eb4f6c7b9a1be (diff)
#80246# - Optimization ( provider now creates and reuses package instances ).
Diffstat (limited to 'ucb/source/ucp/package/pkgdatasupplier.cxx')
-rw-r--r--ucb/source/ucp/package/pkgdatasupplier.cxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/ucb/source/ucp/package/pkgdatasupplier.cxx b/ucb/source/ucp/package/pkgdatasupplier.cxx
index 2574f35e5aae..fca89229f8fe 100644
--- a/ucb/source/ucp/package/pkgdatasupplier.cxx
+++ b/ucb/source/ucp/package/pkgdatasupplier.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: pkgdatasupplier.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: kso $ $Date: 2000-11-28 14:20:41 $
+ * last change: $Author: kso $ $Date: 2000-11-29 14:16:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -86,6 +86,9 @@
#ifndef _PKGCONTENT_HXX
#include "pkgcontent.hxx"
#endif
+#ifndef _PKGPROVIDER_HXX
+#include "pkgprovider.hxx"
+#endif
using namespace com::sun::star::beans;
using namespace com::sun::star::container;
@@ -470,10 +473,11 @@ Reference< XRow > DataSupplier::queryPropertyValues( sal_uInt32 nIndex )
if ( getResult( nIndex ) )
{
Reference< XRow > xRow = Content::getPropertyValues(
- m_pImpl->m_xSMgr,
- getResultSet()->getProperties(),
- m_pImpl->m_xContent->getProvider(),
- queryContentIdentifierString( nIndex ) );
+ m_pImpl->m_xSMgr,
+ getResultSet()->getProperties(),
+ static_cast< ContentProvider * >(
+ m_pImpl->m_xContent->getProvider().getBodyPtr() ),
+ queryContentIdentifierString( nIndex ) );
m_pImpl->m_aResults[ nIndex ]->xRow = xRow;
return xRow;
}