[Libreoffice] EasyHack RTL_CONSTASCII_USTRINGPARAM in sc

Joost Eekhoorn joost.eekhoorn at gmail.com
Mon Nov 1 15:38:07 PDT 2010


MPL 1.1 / GPLv3+ / LGPLv3+

What must be done with empty strings ("")? I did only the replacement with
the macro:

-   sFileExtension = sFirstFilter.equalsAscii("*.*") ?
*::rtl::OUString::**createFromAscii("")
*: sFirstFilter.copy( sFirstFilter.indexOfAsciiL("*.", 2) + 2 );
-   aPathStr = sFileExtension.equalsAscii("") ? aPathStr : aPathStr +
::rtl::OUString::createFromAscii(".") + sFileExtension;

+  sFileExtension = sFirstFilter.equalsAscii("*.*")
?*rtl::OUString(RTL_CONSTASCII_
**USTRINGPARAM(""))*
+        : sFirstFilter.copy( sFirstFilter.indexOfAsciiL("*.", 2) + 2 );
+  aPathStr = sFileExtension.equalsAscii("") ? aPathStr
+        : aPathStr + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(".")) +
sFileExtension;

Joost
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101101/ba4497be/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cFA_joost_9.patch
Type: text/x-patch
Size: 24498 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20101101/ba4497be/attachment-0001.bin>


More information about the LibreOffice mailing list