Index: tools/gn/functions.cc |
diff --git a/tools/gn/functions.cc b/tools/gn/functions.cc |
index 41022e67355a977ea84c3ef16c20f5d6b1e45357..09e3647dc7742e3d2f0a269be463c006b58e78fd 100644 |
--- a/tools/gn/functions.cc |
+++ b/tools/gn/functions.cc |
@@ -366,7 +366,7 @@ Value RunConfig(const FunctionCallNode* function, |
*err = Err(function, "Can't define a config in this context."); |
return Value(); |
} |
- collector->push_back(config.release()); |
+ collector->push_back(std::move(config)); |
return Value(); |
} |
@@ -919,7 +919,7 @@ Value RunPool(const FunctionCallNode* function, |
*err = Err(function, "Can't define a pool in this context."); |
return Value(); |
} |
- collector->push_back(pool.release()); |
+ collector->push_back(std::move(pool)); |
return Value(); |
} |