summaryrefslogtreecommitdiff
path: root/ucb/source/core/ucbstore.cxx
diff options
context:
space:
mode:
authorKai Sommerfeld <kso@openoffice.org>2000-10-26 14:17:16 +0000
committerKai Sommerfeld <kso@openoffice.org>2000-10-26 14:17:16 +0000
commit3b32e03baedd17b8024bb385707c621dc94a0e12 (patch)
tree7b8c6d9b8104cb16b8c345932f2bd5c795047d19 /ucb/source/core/ucbstore.cxx
parent1f4f5f49f81f5b2a8e21726872cbff8f8662669b (diff)
Fixed: PersistentPropertySet::getPropertyValues()
Diffstat (limited to 'ucb/source/core/ucbstore.cxx')
-rw-r--r--ucb/source/core/ucbstore.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx
index fe2ca48b38e6..7dcce1e80196 100644
--- a/ucb/source/core/ucbstore.cxx
+++ b/ucb/source/core/ucbstore.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ucbstore.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: kso $ $Date: 2000-10-26 12:34:56 $
+ * last change: $Author: kso $ $Date: 2000-10-26 15:17:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1855,7 +1855,7 @@ void SAL_CALL PersistentPropertySet::addProperty(
OUString::createFromAscii( "Handle" ),
makeAny( sal_Int32( -1 ) ) );
- // Set defualt value
+ // Set default value
xNameReplace->replaceByName(
OUString::createFromAscii( "Value" ),
DefaultValue );
@@ -2240,10 +2240,13 @@ Sequence< PropertyValue > SAL_CALL PersistentPropertySet::getPropertyValues()
= xHierNameAccess->getByHierarchicalName(
aHierName );
- if ( !( aKeyValue >>= rValue.State ) )
+ sal_Int32 nState = 0;
+ if ( !( aKeyValue >>= nState ) )
OSL_ENSURE( sal_False,
"PersistentPropertySet::getPropertyValues - "
"Error getting property state!" );
+ else
+ rValue.State = PropertyState( nState );
}
catch ( NoSuchElementException& )
{