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

Commit 8525cd03 authored by Myles Watson's avatar Myles Watson Committed by android-build-merger
Browse files

Merge "Module: Mark getters as const" am: d9e79e20 am: a297cffe am: 1aee62b1

am: a056fb17

Change-Id: I8b73f280a25da92b6bb559a868103593f183f7c4
parents 8b537336 a056fb17
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -24,12 +24,12 @@ namespace bluetooth {
ModuleFactory::ModuleFactory(std::function<Module*()> ctor) : ctor_(ctor) {
}

Handler* Module::GetHandler() {
Handler* Module::GetHandler() const {
  ASSERT_LOG(handler_ != nullptr, "Can't get handler when it's not started");
  return handler_;
}

const ModuleRegistry* Module::GetModuleRegistry() {
const ModuleRegistry* Module::GetModuleRegistry() const {
  return registry_;
}

+2 −2
Original line number Diff line number Diff line
@@ -77,9 +77,9 @@ class Module {
  // Release all resources, you're about to be deleted
  virtual void Stop() = 0;

  ::bluetooth::os::Handler* GetHandler();
  ::bluetooth::os::Handler* GetHandler() const;

  const ModuleRegistry* GetModuleRegistry();
  const ModuleRegistry* GetModuleRegistry() const;

  template <class T>
  T* GetDependency() const {