diff options
author | Kai Sommerfeld <kso@openoffice.org> | 2001-03-13 13:14:01 +0000 |
---|---|---|
committer | Kai Sommerfeld <kso@openoffice.org> | 2001-03-13 13:14:01 +0000 |
commit | a7b769c7090217bbdc5dd45c0b85943ac6c43281 (patch) | |
tree | 4b4f571a8b7da1b28bbd74c0388d9fc6e072a8e1 | |
parent | 87674920205001cbc3e5532233a3b0b6b812403d (diff) |
#80510# - Optimized HierarchyResultSetDataSupplier::queryPropertyValues(...)
-rw-r--r-- | ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx b/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx index f4cce3e2ae70..181e09eb00aa 100644 --- a/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx +++ b/ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx @@ -2,9 +2,9 @@ * * $RCSfile: hierarchydatasupplier.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: kso $ $Date: 2000-12-10 15:13:51 $ + * last change: $Author: kso $ $Date: 2001-03-13 14:14:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -411,17 +411,18 @@ Reference< XRow > HierarchyResultSetDataSupplier::queryPropertyValues( if ( getResult( nIndex ) ) { + static OUString aFolderType( OUString::createFromAscii( + HIERARCHY_FOLDER_CONTENT_TYPE ) ); + static OUString aLinkType( OUString::createFromAscii( + HIERARCHY_LINK_CONTENT_TYPE ) ); + HierarchyContentProperties aData; aData.aTitle = m_pImpl->m_aResults[ nIndex ]->aData.aTitle; aData.aTargetURL = m_pImpl->m_aResults[ nIndex ]->aData.aTargetURL; aData.bIsDocument = ( aData.aTargetURL.getLength() > 0 ); aData.bIsFolder = !aData.bIsDocument; - aData.aContentType = aData.bIsFolder - ? OUString::createFromAscii( - HIERARCHY_FOLDER_CONTENT_TYPE ) - : OUString::createFromAscii( - HIERARCHY_LINK_CONTENT_TYPE ); + aData.aContentType = aData.bIsFolder ? aFolderType : aLinkType; Reference< XRow > xRow = HierarchyContent::getPropertyValues( m_pImpl->m_xSMgr, |