MPL 1.1 / GPLv3+ / LGPLv3+<br><br>What must be done with empty strings ("")? I did only the replacement with the macro:<br><br>- sFileExtension = sFirstFilter.equalsAscii("*.*") ? <b>::rtl::OUString::</b><b>createFromAscii("") </b>: sFirstFilter.copy( sFirstFilter.indexOfAsciiL("*.", 2) + 2 );<br>
- aPathStr = sFileExtension.equalsAscii("") ? aPathStr : aPathStr + ::rtl::OUString::createFromAscii(".") + sFileExtension;<br>
<br>+ sFileExtension = sFirstFilter.equalsAscii("*.*") ?<b> rtl::OUString(RTL_CONSTASCII_</b><b>USTRINGPARAM(""))</b><br>+ : sFirstFilter.copy( sFirstFilter.indexOfAsciiL("*.", 2) + 2 );<br>
+ aPathStr = sFileExtension.equalsAscii("") ? aPathStr<br>+ : aPathStr + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".")) + sFileExtension;<br><br>Joost<br>