Reduce use of deprecatedCharacters in WebCore
[WebKit-https.git] / Source / WebCore / svg / SVGFontElement.cpp
index c035523..a20a656 100644 (file)
@@ -94,9 +94,9 @@ void SVGFontElement::registerLigaturesInGlyphCache(Vector<String>& ligatures)
         unsigned unicodeLength = unicode.length();
         ASSERT(unicodeLength > 1);
 
-        const UChar* characters = unicode.deprecatedCharacters();
         for (unsigned i = 0; i < unicodeLength; ++i) {
-            String lookupString(characters + i, 1);
+            UChar character = unicode[i];
+            String lookupString(&character, 1);
             m_glyphMap.collectGlyphsForString(lookupString, glyphs);
             if (!glyphs.isEmpty()) {
                 glyphs.clear();