Hi,<br><br>CONTEXT:<br><br>For single characters I see often sal_Unicode( &#39;/&#39; ) used and sometimes OUString( sal_Unicode( &#39;/&#39; ).<br>Examples (for adding one space):<br><ul><li>aDefaultPageName += sal_Unicode( &#39; &#39; );</li>
<li>sAuthor += OUString( sal_Unicode( &#39; &#39; );</li></ul>sal_Unicode is defined in ./sal/inc/rtl/ustring.hxx<br><br>In ./sal/inc/rtl/ustring.hxx I see that OUString uses sal_Unicode.<br>There is also the typedef rtl_uString:<br>
typedef struct _rtl_uString<br>{<br>    oslInterlockedCount refCount; /* opaque */<br>    sal_Int32           length;<br>    sal_Unicode         buffer[1];<br>} rtl_uString;<br><br>QUESTION:<br><br>So if there is SAuthor += OUString::createFromAscii( &quot; &quot; );<br>

which is the correct replacement:<br>
<ul><li>sAuthor += OUString( RTL_CONSTASCII_USTRINGPARAM(sal_Unicode( &quot; &quot; );</li><li>sAuthor += OUString( sal_Unicode( &#39; &#39; );</li><li>sAuthor += sal_Unicode( &#39; &#39; );</li></ul>
Joost<br>