Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a382f969 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "RootCanal: Avoid a couple string copies"

parents 41c91548 8369d2fb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ using std::vector;
namespace test_vendor_lib {

HciSocketDevice::HciSocketDevice(std::shared_ptr<AsyncDataChannel> socket,
                                 std::string properties_filename)
                                 const std::string& properties_filename)
    : DualModeController(properties_filename), socket_(socket) {
  advertising_interval_ms_ = std::chrono::milliseconds(1000);

+2 −2
Original line number Diff line number Diff line
@@ -34,12 +34,12 @@ using android::net::AsyncDataChannel;
class HciSocketDevice : public DualModeController {
 public:
  HciSocketDevice(std::shared_ptr<AsyncDataChannel> socket,
                  std::string properties_filename);
                  const std::string& properties_filename);
  ~HciSocketDevice() = default;

  static std::shared_ptr<HciSocketDevice> Create(
      std::shared_ptr<AsyncDataChannel> socket,
      std::string properties_filename) {
      const std::string& properties_filename) {
    return std::make_shared<HciSocketDevice>(socket, properties_filename);
  }