From a7b769c7090217bbdc5dd45c0b85943ac6c43281 Mon Sep 17 00:00:00 2001 From: Kai Sommerfeld Date: Tue, 13 Mar 2001 13:14:01 +0000 Subject: #80510# - Optimized HierarchyResultSetDataSupplier::queryPropertyValues(...) --- ucb/source/ucp/hierarchy/hierarchydatasupplier.cxx | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'ucb/source') 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, -- cgit