diff options
Diffstat (limited to 'xmloff/source/forms/propertyexport.cxx')
-rw-r--r-- | xmloff/source/forms/propertyexport.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xmloff/source/forms/propertyexport.cxx b/xmloff/source/forms/propertyexport.cxx index 1f145898f2e2..f230863a88ea 100644 --- a/xmloff/source/forms/propertyexport.cxx +++ b/xmloff/source/forms/propertyexport.cxx @@ -472,10 +472,10 @@ namespace xmloff } void OPropertyExport::exportStringSequenceAttribute(const sal_uInt16 _nAttributeNamespaceKey, const sal_Char* _pAttributeName, - const OUString& _rPropertyName, - const sal_Unicode _aQuoteCharacter) + const OUString& _rPropertyName) { const sal_Unicode _aListSeparator = ','; + const sal_Unicode _aQuoteCharacter = '"'; DBG_CHECK_PROPERTY( _rPropertyName, Sequence< OUString > ); Sequence< OUString > aItems; @@ -497,10 +497,8 @@ namespace xmloff ++pItems ) { - OSL_ENSURE(!_aQuoteCharacter || (-1 == pItems->indexOf(_aQuoteCharacter)), + OSL_ENSURE(-1 == pItems->indexOf(_aQuoteCharacter), "OPropertyExport::exportStringSequenceAttribute: there is an item which contains the quote character!"); - OSL_ENSURE(_aQuoteCharacter || (-1 == pItems->indexOf(_aListSeparator)), - "OPropertyExport::exportStringSequenceAttribute: no quote character, but there is an item containing the separator character!"); if (bQuote) sFinalList += sQuote; |