Index: webkit/glue/glue_util.cc |
=================================================================== |
--- webkit/glue/glue_util.cc (revision 9744) |
+++ webkit/glue/glue_util.cc (working copy) |
@@ -92,8 +92,9 @@ |
const std::string& spec = url.possibly_invalid_spec(); |
#if USE(GOOGLEURL) |
// Convert using the internal structures to avoid re-parsing. |
- return WebCore::KURL(spec.c_str(), static_cast<int>(spec.length()), |
- url.parsed_for_possibly_invalid_spec(), url.is_valid()); |
+ return WebCore::KURL( |
+ WebCore::CString(spec.c_str(), static_cast<int>(spec.length())), |
+ url.parsed_for_possibly_invalid_spec(), url.is_valid()); |
#else |
return WebCore::KURL(StdWStringToString(UTF8ToWide(spec))); |
#endif |