Skip to content

Commit

Permalink
Apply readability-static-accessed-through-instance
Browse files Browse the repository at this point in the history
  • Loading branch information
rbx authored and dennisklein committed Sep 27, 2021
1 parent cf9b45c commit 9590b5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion fairmq/DeviceRunner.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ auto DeviceRunner::Run() -> int
fPluginManager.ForEachPluginProgOptions([&](boost::program_options::options_description options) {
fConfig.AddToCmdLineOptions(options);
});
fConfig.AddToCmdLineOptions(fPluginManager.ProgramOptions());
fConfig.AddToCmdLineOptions(PluginManager::ProgramOptions());

////// CALL HOOK ///////
fEvents.Emit<hooks::ModifyRawCmdLineArgs>(*this);
Expand Down
8 changes: 4 additions & 4 deletions fairmq/Plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ class Plugin
// see <fairmq/PluginServices.h> for docs
using DeviceState = fair::mq::PluginServices::DeviceState;
using DeviceStateTransition = fair::mq::PluginServices::DeviceStateTransition;
auto ToDeviceState(const std::string& state) const -> DeviceState { return fPluginServices->ToDeviceState(state); }
auto ToDeviceStateTransition(const std::string& transition) const -> DeviceStateTransition { return fPluginServices->ToDeviceStateTransition(transition); }
auto ToStr(DeviceState state) const -> std::string { return fPluginServices->ToStr(state); }
auto ToStr(DeviceStateTransition transition) const -> std::string { return fPluginServices->ToStr(transition); }
auto ToDeviceState(const std::string& state) const -> DeviceState { return PluginServices::ToDeviceState(state); }
auto ToDeviceStateTransition(const std::string& transition) const -> DeviceStateTransition { return PluginServices::ToDeviceStateTransition(transition); }
auto ToStr(DeviceState state) const -> std::string { return PluginServices::ToStr(state); }
auto ToStr(DeviceStateTransition transition) const -> std::string { return PluginServices::ToStr(transition); }
auto GetCurrentDeviceState() const -> DeviceState { return fPluginServices->GetCurrentDeviceState(); }
auto TakeDeviceControl() -> void { fPluginServices->TakeDeviceControl(fkName); };
auto StealDeviceControl() -> void { fPluginServices->StealDeviceControl(fkName); };
Expand Down

0 comments on commit 9590b5b

Please sign in to comment.