Partially revert "Cleanup: use post increment/decrement"

This partially reverts commit 0b2d1badec

Post increment can deep-copy for C++ iterators, while in my own checks
GCC was able to optimize this to get the same output,
better follow C++ best practice and use pre-increment for iterators.
This commit is contained in:
2019-09-08 03:31:49 +10:00
parent abeab4fcad
commit fd05f01be6
16 changed files with 76 additions and 76 deletions

View File

@@ -152,7 +152,7 @@ NodeOperation *NodeOperation::getInputOperation(unsigned int inputSocketIndex)
void NodeOperation::getConnectedInputSockets(Inputs *sockets)
{
for (Inputs::const_iterator it = m_inputs.begin(); it != m_inputs.end(); it++) {
for (Inputs::const_iterator it = m_inputs.begin(); it != m_inputs.end(); ++it) {
NodeOperationInput *input = *it;
if (input->isConnected()) {
sockets->push_back(input);