summaryrefslogtreecommitdiff
path: root/cmds/incident/main.cpp
diff options
context:
space:
mode:
author Jiyong Park <jiyong@google.com> 2019-12-18 06:14:38 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2019-12-18 06:14:38 +0000
commit6316f348e7896fc7561690a237ef8ed7a8010d6c (patch)
tree6eb330bfb5eaa7613bca894e73cf6d165338143f /cmds/incident/main.cpp
parent65303aa3850b163048af2d53b21e548a543c7e18 (diff)
parent573fd3dfe09252eda18c63f177823df481100d81 (diff)
Merge "unique_fd is passed by value in AIDL interfaces"
Diffstat (limited to 'cmds/incident/main.cpp')
-rw-r--r--cmds/incident/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/incident/main.cpp b/cmds/incident/main.cpp
index 6c3d19715c2e..eb2b98a666b9 100644
--- a/cmds/incident/main.cpp
+++ b/cmds/incident/main.cpp
@@ -375,7 +375,7 @@ main(int argc, char** argv)
if (destination == DEST_STDOUT) {
// Call into the service
sp<StatusListener> listener(new StatusListener());
- status = service->reportIncidentToStream(args, listener, writeEnd);
+ status = service->reportIncidentToStream(args, listener, std::move(writeEnd));
if (!status.isOk()) {
fprintf(stderr, "reportIncident returned \"%s\"\n", status.toString8().string());
@@ -388,7 +388,7 @@ main(int argc, char** argv)
} else if (destination == DEST_DUMPSTATE) {
// Call into the service
sp<StatusListener> listener(new StatusListener());
- status = service->reportIncidentToDumpstate(writeEnd, listener);
+ status = service->reportIncidentToDumpstate(std::move(writeEnd), listener);
if (!status.isOk()) {
fprintf(stderr, "reportIncident returned \"%s\"\n", status.toString8().string());
return 1;