Move to use postfix increment only

This commit is contained in:
Alexander Bock
2025-09-07 16:56:59 +02:00
parent 0e72a2cb0d
commit ff72e47f7b
49 changed files with 94 additions and 94 deletions

View File

@@ -184,7 +184,7 @@ std::string TransferFunction::serializedToString() const {
return "";
}
json j;
for (auto envIter = _envelopes.begin(); envIter != _envelopes.end(); ++envIter) {
for (auto envIter = _envelopes.begin(); envIter != _envelopes.end(); envIter++) {
j[std::distance(_envelopes.begin(), envIter)] = { envIter->jsonEnvelope() };
}
return j.dump();
@@ -216,7 +216,7 @@ bool TransferFunction::createTexture(ghoul::opengl::Texture& ptr) {
rgbFromEnvelopes /= (count == 0) ? 1.f : static_cast<float>(count);
rgbFromEnvelopes.w = alpha;
for (int channel = 0; channel < 4; ++channel) {
for (int channel = 0; channel < 4; channel++) {
const int p = 4 * i + channel;
const float value = rgbFromEnvelopes[channel];
transferFunction[p] = value;