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( ...@@ -498,7 +498,7 @@ Orphan<DynamicValue> JsonCodec::decode(
KJ_REQUIRE(byte(x) == x, "Number in byte array is not an integer in [0, 255]"); KJ_REQUIRE(byte(x) == x, "Number in byte array is not an integer in [0, 255]");
data[i] = x; data[i] = x;
} }
return orphan; return kj::mv(orphan);
} }
default: default:
KJ_FAIL_REQUIRE("Expected data value"); KJ_FAIL_REQUIRE("Expected data value");
...@@ -521,7 +521,7 @@ Orphan<DynamicValue> JsonCodec::decode( ...@@ -521,7 +521,7 @@ Orphan<DynamicValue> JsonCodec::decode(
auto structType = type.asStruct(); auto structType = type.asStruct();
auto orphan = orphanage.newOrphan(structType); auto orphan = orphanage.newOrphan(structType);
decodeObject(input, structType, orphanage, orphan.get()); decodeObject(input, structType, orphanage, orphan.get());
return orphan; return kj::mv(orphan);
} }
case schema::Type::INTERFACE: case schema::Type::INTERFACE:
KJ_FAIL_REQUIRE("don't know how to JSON-decode capabilities; " 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