Replace all ~"" with "".to_owned().

This commit is contained in:
Ms2ger 2014-05-03 22:17:45 +02:00
parent 731e66ff13
commit 243814022e
78 changed files with 290 additions and 290 deletions

View file

@ -243,7 +243,7 @@ impl Default for StringificationBehavior {
impl FromJSValConvertible<StringificationBehavior> for DOMString {
fn from_jsval(cx: *JSContext, value: JSVal, nullBehavior: StringificationBehavior) -> Result<DOMString, ()> {
if nullBehavior == Empty && value.is_null() {
Ok(~"")
Ok("".to_owned())
} else {
let jsstr = unsafe { JS_ValueToString(cx, value) };
if jsstr.is_null() {