diff options
Diffstat (limited to 'xbmc/addons/kodi-dev-kit/include/kodi/gui/Window.h')
| -rw-r--r-- | xbmc/addons/kodi-dev-kit/include/kodi/gui/Window.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xbmc/addons/kodi-dev-kit/include/kodi/gui/Window.h b/xbmc/addons/kodi-dev-kit/include/kodi/gui/Window.h index 3066b3c..10fa6ef 100644 --- a/xbmc/addons/kodi-dev-kit/include/kodi/gui/Window.h +++ b/xbmc/addons/kodi-dev-kit/include/kodi/gui/Window.h | |||
| @@ -451,7 +451,7 @@ public: | |||
| 451 | /// @param[in] item List item to add | 451 | /// @param[in] item List item to add |
| 452 | /// @param[in] itemPosition [opt] The position for item, default is on end | 452 | /// @param[in] itemPosition [opt] The position for item, default is on end |
| 453 | /// | 453 | /// |
| 454 | void AddListItem(std::shared_ptr<CListItem> item, int itemPosition = -1) | 454 | void AddListItem(const std::shared_ptr<CListItem>& item, int itemPosition = -1) |
| 455 | { | 455 | { |
| 456 | m_interface->kodi_gui->window->add_list_item(m_interface->kodiBase, m_controlHandle, | 456 | m_interface->kodi_gui->window->add_list_item(m_interface->kodiBase, m_controlHandle, |
| 457 | item->m_controlHandle, itemPosition); | 457 | item->m_controlHandle, itemPosition); |
| @@ -465,7 +465,7 @@ public: | |||
| 465 | /// @param[in] item List item to add | 465 | /// @param[in] item List item to add |
| 466 | /// @param[in] itemPosition [opt] The position for item, default is on end | 466 | /// @param[in] itemPosition [opt] The position for item, default is on end |
| 467 | /// | 467 | /// |
| 468 | void AddListItem(const std::string item, int itemPosition = -1) | 468 | void AddListItem(const std::string& item, int itemPosition = -1) |
| 469 | { | 469 | { |
| 470 | m_interface->kodi_gui->window->add_list_item( | 470 | m_interface->kodi_gui->window->add_list_item( |
| 471 | m_interface->kodiBase, m_controlHandle, | 471 | m_interface->kodiBase, m_controlHandle, |
| @@ -492,7 +492,7 @@ public: | |||
| 492 | /// | 492 | /// |
| 493 | /// @param[in] item List item control class to remove | 493 | /// @param[in] item List item control class to remove |
| 494 | /// | 494 | /// |
| 495 | void RemoveListItem(std::shared_ptr<CListItem> item) | 495 | void RemoveListItem(const std::shared_ptr<CListItem>& item) |
| 496 | { | 496 | { |
| 497 | m_interface->kodi_gui->window->remove_list_item(m_interface->kodiBase, m_controlHandle, | 497 | m_interface->kodi_gui->window->remove_list_item(m_interface->kodiBase, m_controlHandle, |
| 498 | item->m_controlHandle); | 498 | item->m_controlHandle); |
