[Libreoffice-commits] .: vcl/aqua

David Tardon dtardon at kemper.freedesktop.org
Tue Dec 14 22:55:32 PST 2010


 vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm |   24 +++++++++----------
 1 file changed, 12 insertions(+), 12 deletions(-)

New commits:
commit 6a0e88b292d901068835042d126819360a06e84e
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Wed Dec 15 07:55:20 2010 +0100

    RTL_CONSTASCII_USTRINGPARAM for aqua

diff --git a/vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm b/vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm
index 6577ceb..7bee05d 100644
--- a/vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm
+++ b/vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm
@@ -132,18 +132,18 @@ using namespace ::rtl;
 +(void)applyAttributesFrom:(Sequence < PropertyValue >)attributes toString:(NSMutableAttributedString *)string forRange:(NSRange)range storeDefaultsTo:(AquaA11yWrapper *)wrapperStore getDefaultsFrom:(AquaA11yWrapper *)wrapper {
     NSAutoreleasePool * pool = [ [ NSAutoreleasePool alloc ] init ];
     // constants
-    static const OUString attrUnderline = OUString::createFromAscii("CharUnderline");
-    static const OUString attrBold = OUString::createFromAscii("CharWeight");
-    static const OUString attrFontname = OUString::createFromAscii("CharFontName");
-    static const OUString attrItalic = OUString::createFromAscii("CharPosture");
-    static const OUString attrHeight = OUString::createFromAscii("CharHeight");
-    static const OUString attrStrikethrough = OUString::createFromAscii("CharStrikeout");
-    static const OUString attrShadow = OUString::createFromAscii("CharShadowed");
-    static const OUString attrUnderlineColor = OUString::createFromAscii("CharUnderlineColor");
-    static const OUString attrUnderlineHasColor = OUString::createFromAscii("CharUnderlineHasColor");
-    static const OUString attrForegroundColor = OUString::createFromAscii("CharColor");
-    static const OUString attrBackgroundColor = OUString::createFromAscii("CharBackColor");
-    static const OUString attrSuperscript = OUString::createFromAscii("CharEscapement");
+    static const OUString attrUnderline(RTL_CONSTASCII_USTRINGPARAM("CharUnderline"));
+    static const OUString attrBold(RTL_CONSTASCII_USTRINGPARAM("CharWeight"));
+    static const OUString attrFontname(RTL_CONSTASCII_USTRINGPARAM("CharFontName"));
+    static const OUString attrItalic(RTL_CONSTASCII_USTRINGPARAM("CharPosture"));
+    static const OUString attrHeight(RTL_CONSTASCII_USTRINGPARAM("CharHeight"));
+    static const OUString attrStrikethrough(RTL_CONSTASCII_USTRINGPARAM("CharStrikeout"));
+    static const OUString attrShadow(RTL_CONSTASCII_USTRINGPARAM("CharShadowed"));
+    static const OUString attrUnderlineColor(RTL_CONSTASCII_USTRINGPARAM("CharUnderlineColor"));
+    static const OUString attrUnderlineHasColor(RTL_CONSTASCII_USTRINGPARAM("CharUnderlineHasColor"));
+    static const OUString attrForegroundColor(RTL_CONSTASCII_USTRINGPARAM("CharColor"));
+    static const OUString attrBackgroundColor(RTL_CONSTASCII_USTRINGPARAM("CharBackColor"));
+    static const OUString attrSuperscript(RTL_CONSTASCII_USTRINGPARAM("CharEscapement"));
     // vars
     OUString fontname;
     int fonttraits = 0;


More information about the Libreoffice-commits mailing list