Device support: Fix yet another off-by-one error for device indices.
Prevent them from happening in the future by hiding the respective
functions in the device manager. No one should ever need to map an id to
an index directly on the device manager.
Change-Id: I41da16489b8aec67709ab3b4b115d915d4f29a4c
Reviewed-by:
Tobias Hunger <tobias.hunger@nokia.com>
Showing
- src/plugins/projectexplorer/devicesupport/devicemanager.cpp 13 additions, 18 deletionssrc/plugins/projectexplorer/devicesupport/devicemanager.cpp
- src/plugins/projectexplorer/devicesupport/devicemanager.h 0 additions, 3 deletionssrc/plugins/projectexplorer/devicesupport/devicemanager.h
- src/plugins/projectexplorer/devicesupport/devicemanagermodel.h 1 addition, 2 deletions...lugins/projectexplorer/devicesupport/devicemanagermodel.h
- src/plugins/projectexplorer/devicesupport/devicesettingswidget.cpp 1 addition, 1 deletion...ns/projectexplorer/devicesupport/devicesettingswidget.cpp
Please register or sign in to comment