Commit f25df3b370ce5f4a4817391b470731cdd312d469
Committed by
Moritz Wirger
1 parent
8d45d342
Update readme examples to match changed return types.
Showing
2 changed files
with
2 additions
and
2 deletions
README.md
| @@ -70,7 +70,7 @@ hueplusplus::Light light1 = bridge.lights().get(1); | @@ -70,7 +70,7 @@ hueplusplus::Light light1 = bridge.lights().get(1); | ||
| 70 | If you don't know the id of a specific light or want to get an overview over all lights that are controlled by your bridge, | 70 | If you don't know the id of a specific light or want to get an overview over all lights that are controlled by your bridge, |
| 71 | you can get a vector containing them by calling getAll(). If no lights are found the vector will be empty. | 71 | you can get a vector containing them by calling getAll(). If no lights are found the vector will be empty. |
| 72 | ```C++ | 72 | ```C++ |
| 73 | -std::vector<std::reference_wrapper<hueplusplus::Light>> lights = bridge.lights().getAll(); | 73 | +std::vector<hueplusplus::Light> lights = bridge.lights().getAll(); |
| 74 | ``` | 74 | ``` |
| 75 | If you now want to control a light, call a specific function of it. | 75 | If you now want to control a light, call a specific function of it. |
| 76 | ```C++ | 76 | ```C++ |
doc/markdown/Mainpage.md
| @@ -66,7 +66,7 @@ hueplusplus::Light light1 = bridge.lights().get(1); | @@ -66,7 +66,7 @@ hueplusplus::Light light1 = bridge.lights().get(1); | ||
| 66 | If you don't know the id of a specific light or want to get an overview over all lights that are controlled by your bridge, | 66 | If you don't know the id of a specific light or want to get an overview over all lights that are controlled by your bridge, |
| 67 | you can get a vector containing them by calling [getAll()](@ref hueplusplus::ResourceList::getAll) on your bridge object. If no lights are found the vector will be empty. | 67 | you can get a vector containing them by calling [getAll()](@ref hueplusplus::ResourceList::getAll) on your bridge object. If no lights are found the vector will be empty. |
| 68 | ```{.cpp} | 68 | ```{.cpp} |
| 69 | -std::vector<std::reference_wrapper<hueplusplus::Light>> lights = bridge.lights().getAll(); | 69 | +std::vector<hueplusplus::Light> lights = bridge.lights().getAll(); |
| 70 | ``` | 70 | ``` |
| 71 | If you now want to control a light, call a specific function of it. | 71 | If you now want to control a light, call a specific function of it. |
| 72 | ```{.cpp} | 72 | ```{.cpp} |