Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
fix: Const iterator usage
Browse files Browse the repository at this point in the history
  • Loading branch information
zehnm committed Aug 29, 2020
1 parent 5457a7c commit 5f7f3e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/homeassistant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ HomeAssistant::HomeAssistant(const QVariantMap &config, EntitiesInterface *entit
NotificationsInterface *notifications, YioAPIInterface *api, ConfigInterface *configObj,
Plugin *plugin)
: Integration(config, entities, notifications, api, configObj, plugin) {
for (QVariantMap::const_iterator iter = config.begin(); iter != config.end(); ++iter) {
for (QVariantMap::const_iterator iter = config.cbegin(); iter != config.cend(); ++iter) {
if (iter.key() == Integration::OBJ_DATA) {
QVariantMap map = iter.value().toMap();
m_ip = map.value(Integration::KEY_DATA_IP).toString();
Expand Down

0 comments on commit 5f7f3e7

Please sign in to comment.