Commit f39c2070 authored by Ingvar Stepanyan's avatar Ingvar Stepanyan

Add kj::mv as a fix for older compilers

parent cc743297
......@@ -498,7 +498,7 @@ Orphan<DynamicValue> JsonCodec::decode(
KJ_REQUIRE(byte(x) == x, "Number in byte array is not an integer in [0, 255]");
data[i] = x;
}
return orphan;
return kj::mv(orphan);
}
default:
KJ_FAIL_REQUIRE("Expected data value");
......@@ -521,7 +521,7 @@ Orphan<DynamicValue> JsonCodec::decode(
auto structType = type.asStruct();
auto orphan = orphanage.newOrphan(structType);
decodeObject(input, structType, orphanage, orphan.get());
return orphan;
return kj::mv(orphan);
}
case schema::Type::INTERFACE:
KJ_FAIL_REQUIRE("don't know how to JSON-decode capabilities; "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment