CFURLRef KURL::createCFURL() const { // FIXME: What should this return for invalid URLs? // Currently it throws away the high bytes of the characters in the string in that case, // which is clearly wrong. CharBuffer buffer; copyToBuffer(buffer); return createCFURLFromBuffer(buffer); }
CFURLRef KURL::createCFURL() const { #if !USE(WTFURL) // FIXME: What should this return for invalid URLs? // Currently it throws away the high bytes of the characters in the string in that case, // which is clearly wrong. CharBuffer buffer; copyToBuffer(buffer); return createCFURLFromBuffer(buffer); #else // USE(WTFURL) // FIXME: Add WTFURL Implementation. return 0; #endif }