summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorsb <sb@openoffice.org>2009-11-25 14:27:23 +0100
committersb <sb@openoffice.org>2009-11-25 14:27:23 +0100
commit33999cc088e32ddc17143aaa50199a7a2883433b (patch)
treed6bd6365b6b344db894b8e6298f79e927368cfc6 /ucb
parentf6695730459bbd0123012a52efec1c2b2b716daa (diff)
sb111: #i101955# call replaceByName with correctly typed UNO any values (int instead of enum)
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/core/ucbstore.cxx12
1 files changed, 9 insertions, 3 deletions
diff --git a/ucb/source/core/ucbstore.cxx b/ucb/source/core/ucbstore.cxx
index 40c8984d080f..cb5b5af06265 100644
--- a/ucb/source/core/ucbstore.cxx
+++ b/ucb/source/core/ucbstore.cxx
@@ -1570,7 +1570,9 @@ void SAL_CALL PersistentPropertySet::setPropertyValue(
// Write state ( Now it is a directly set value )
xNameReplace->replaceByName(
OUString::createFromAscii( "State" ),
- makeAny( PropertyState_DIRECT_VALUE ) );
+ makeAny(
+ sal_Int32(
+ PropertyState_DIRECT_VALUE ) ) );
// Commit changes.
xBatch->commitChanges();
@@ -1854,7 +1856,9 @@ void SAL_CALL PersistentPropertySet::addProperty(
// Set state ( always "default" )
xNameReplace->replaceByName(
OUString::createFromAscii( "State" ),
- makeAny( PropertyState_DEFAULT_VALUE ) );
+ makeAny(
+ sal_Int32(
+ PropertyState_DEFAULT_VALUE ) ) );
// Set attributes
xNameReplace->replaceByName(
@@ -2330,7 +2334,9 @@ void SAL_CALL PersistentPropertySet::setPropertyValues(
// Write state ( Now it is a directly set value )
xNameReplace->replaceByName(
OUString::createFromAscii( "State" ),
- makeAny( PropertyState_DIRECT_VALUE ) );
+ makeAny(
+ sal_Int32(
+ PropertyState_DIRECT_VALUE ) ) );
// Commit changes.
xBatch->commitChanges();