diff options
author | Rüdiger Timm <rt@openoffice.org> | 2008-07-11 06:40:28 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2008-07-11 06:40:28 +0000 |
commit | 6f25a206ef98536e3e90a155e13ffa59854d0891 (patch) | |
tree | 4108cd8e837ba78b12adba765c31291d55df0693 /ucb | |
parent | 699914c18c01fd3a6d2eb0f8ae952eff2b9d7c61 (diff) |
INTEGRATION: CWS tkr14 (1.11.8); FILE MERGED
2008/06/05 09:38:49 tkr 1.11.8.1: #i78894# changes for caching
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/webdav/ContentProperties.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/ucb/source/ucp/webdav/ContentProperties.cxx b/ucb/source/ucp/webdav/ContentProperties.cxx index 1ab20ee4fd87..3c5fb0fd4633 100644 --- a/ucb/source/ucp/webdav/ContentProperties.cxx +++ b/ucb/source/ucp/webdav/ContentProperties.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ContentProperties.cxx,v $ - * $Revision: 1.11 $ + * $Revision: 1.12 $ * * This file is part of OpenOffice.org. * @@ -293,8 +293,10 @@ ContentProperties::ContentProperties( const ContentProperties & rOther ) //========================================================================= bool ContentProperties::contains( const rtl::OUString & rName ) const { - const uno::Any & rValue = getValue( rName ); - return rValue.hasValue(); + if ( get( rName ) ) + return true; + else + return false; } //========================================================================= @@ -551,6 +553,11 @@ void ContentProperties::addProperties( // Add it. (*m_xProps)[ rName ] = PropertyValue( *pProp ); } + else + { + (*m_xProps)[ rName ] = PropertyValue( uno::Any(), false ); + } + } ++it; |