Use Q_FOREACH instead of C++11 range-loops
Unlike Q_FOREACH, range-loops always call non-const begin() on container (unless the container is const), which in case of Qt containers causes detach and deep copy.
parent
351ba3a7
Please register or sign in to comment