--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/5c459319-9ab1-4c0e-a4e2-d8dd69a068cbn%40chromium.org.
You can do that, and it will work to convert between types, but you're probably doing too much work. WTF::String::Utf8() already returns a std::string, so there's no need to call data() on that and then convert it back to std::string. Similarly, WTF::String has a constructor that takes a std::string, so you don't need to extract the c_str() in order to convert back.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/CAK_TSX%2BgtegXHdtEaPa2ovcKJ_o8rn9P%3Dv5-nefH-pappwBr5g%40mail.gmail.com.