diff options
Diffstat (limited to 'src/device_registration_info.cc')
-rw-r--r-- | src/device_registration_info.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device_registration_info.cc b/src/device_registration_info.cc index 20fd9c0..8cf24a7 100644 --- a/src/device_registration_info.cc +++ b/src/device_registration_info.cc @@ -1115,7 +1115,7 @@ void DeviceRegistrationInfo::ProcessInitialCommandList( ErrorPtr error) { if (error) return; - for (const base::Value* command : commands) { + for (const auto& command : commands) { const base::DictionaryValue* command_dict{nullptr}; if (!command->GetAsDictionary(&command_dict)) { LOG(WARNING) << "Not a command dictionary: " << *command; @@ -1152,7 +1152,7 @@ void DeviceRegistrationInfo::PublishCommands(const base::ListValue& commands, ErrorPtr error) { if (error) return; - for (const base::Value* command : commands) { + for (const auto& command : commands) { const base::DictionaryValue* command_dict{nullptr}; if (!command->GetAsDictionary(&command_dict)) { LOG(WARNING) << "Not a command dictionary: " << *command; |