@@ -922,7 +922,7 @@ uint16_t Container::getFreeSlots() {
922922}
923923
924924ContainerIterator Container::iterator () {
925- return { getContainer (), static_cast <size_t >(g_configManager ().getNumber (MAX_CONTAINER_DEPTH, __FUNCTION__))};
925+ return { getContainer (), static_cast <size_t >(g_configManager ().getNumber (MAX_CONTAINER_DEPTH, __FUNCTION__)) };
926926}
927927
928928void Container::removeItem (std::shared_ptr<Thing> thing, bool sendUpdateToClient /* = false*/ ) {
@@ -977,7 +977,7 @@ ContainerIterator::ContainerIterator(const std::shared_ptr<Container> &container
977977
978978bool ContainerIterator::hasNext () const {
979979 while (!states.empty ()) {
980- const auto & top = states.back ();
980+ const auto & top = states.back ();
981981 const auto &container = top.container .lock ();
982982 if (!container) {
983983 // Container has been deleted
@@ -996,7 +996,7 @@ void ContainerIterator::advance() {
996996 return ;
997997 }
998998
999- auto & top = states.back ();
999+ auto & top = states.back ();
10001000 const auto &container = top.container .lock ();
10011001 if (!container) {
10021002 // Container has been deleted
@@ -1020,13 +1020,13 @@ void ContainerIterator::advance() {
10201020 visitedContainers.insert (subContainer);
10211021 } else {
10221022 if (!m_cycleDetected) {
1023- // g_logger().debug("[{}] Cycle detected in container: {}", __FUNCTION__, subContainer->getName());
1023+ // g_logger().debug("[{}] Cycle detected in container: {}", __FUNCTION__, subContainer->getName());
10241024 m_cycleDetected = true ;
10251025 }
10261026 }
10271027 } else {
10281028 if (!m_maxDepthReached) {
1029- // g_logger().debug("[{}] Maximum iteration depth reached", __FUNCTION__);
1029+ // g_logger().debug("[{}] Maximum iteration depth reached", __FUNCTION__);
10301030 m_maxDepthReached = true ;
10311031 }
10321032 }
@@ -1041,7 +1041,7 @@ std::shared_ptr<Item> ContainerIterator::operator*() const {
10411041 return nullptr ;
10421042 }
10431043
1044- const auto & top = states.back ();
1044+ const auto & top = states.back ();
10451045 if (const auto &container = top.container .lock ()) {
10461046 if (top.index < container->itemlist .size ()) {
10471047 return container->itemlist [top.index ];
0 commit comments