@AnneRanch my own habit. If list_item is not changed in the loop, you can add a const to enforce it. If anything of list_item is changed by accident, the compiler will tell it is wrong. But maybe no big deal in your app. Up to you.
C++ Gurus
The forum for all discussions in C++ land.
1.2k
Topics
8.3k
Posts
-
How to iterate QList ?
Unsolved -
How to iterate "parent" objects?
Unsolved -
This topic is deleted!
Unsolved -
-
This topic is deleted!
Unsolved -
How to add "new line " to QString ?
Unsolved -
-
This topic is deleted!
Unsolved -
header file not found
Solved -
Another "reuse" question
Unsolved -
-
multiple inheritance ?
Locked Unsolved -
TEMPLATE = lib ?
Unsolved -
-
-
QML extension plugin problem
Unsolved -
please clarify std::ratio using
Unsolved -
This topic is deleted!
Unsolved -
Weird array properties
Unsolved -
This topic is deleted!
Unsolved