| commit | e04c22972068e713aab34ea16c87103a34333183 | [log] [tgz] |
|---|---|---|
| author | Nathan Muggli <[email protected]> | Wed Nov 05 18:13:32 2025 |
| committer | Chromeos LUCI <[email protected]> | Fri Nov 07 05:11:02 2025 |
| tree | 22b0c055c12978ca9a731b006003be93a828484a | |
| parent | af30892270de7b445e78c7a73d0c7785ce32b050 [diff] |
camera-monitor: Pass Bus::Options by value with std::move CL:7056670 modified the dbus::Bus ctor to accept the Options parameter by value instead of const ref. Make similar updates here so a patch in libchrome can be removed. BUG=b:454152943 TEST=CQ Change-Id: I625387242191816aa929a55b4944cb5966b34935 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/cfm-device-monitor/+/7126991 Reviewed-by: Joshua Pius <[email protected]> Commit-Queue: Nathan Muggli <[email protected]> Auto-Submit: Nathan Muggli <[email protected]> Tested-by: Nathan Muggli <[email protected]>
diff --git a/camera-monitor/huddly_monitor.cc b/camera-monitor/huddly_monitor.cc index 572e938..0963b41 100644 --- a/camera-monitor/huddly_monitor.cc +++ b/camera-monitor/huddly_monitor.cc
@@ -19,6 +19,7 @@ #include <memory> #include <sstream> #include <string> +#include <utility> #include "cfm-device-monitor/camera-monitor/tools.h" #include "cfm-device-monitor/camera-monitor/uvc/huddly_go_device.h" @@ -73,7 +74,7 @@ if (!bus_) { dbus::Bus::Options options; options.bus_type = dbus::Bus::SYSTEM; - bus_ = new dbus::Bus(options); + bus_ = new dbus::Bus(std::move(options)); } if (!bus_->Connect()) { LOG(ERROR) << "Failed to connect to D-Bus";