diff options
author | sb <sb@openoffice.org> | 2009-11-25 14:27:23 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2009-11-25 14:27:23 +0100 |
commit | 33999cc088e32ddc17143aaa50199a7a2883433b (patch) | |
tree | d6bd6365b6b344db894b8e6298f79e927368cfc6 /ucb | |
parent | f6695730459bbd0123012a52efec1c2b2b716daa (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.cxx | 12 |
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(); |