Use const in MatroskaCuePositionUpdater::updateSize

This commit is contained in:
Martchus 2017-09-21 23:28:18 +02:00
parent 7ffb83c4b2
commit dc32ca77fb
1 changed files with 2 additions and 2 deletions

View File

@ -206,9 +206,9 @@ bool MatroskaCuePositionUpdater::updateSize(EbmlElement *element, int shift)
// get size info
uint64 &size = m_sizes.at(element);
// calculate new size
uint64 newSize = shift > 0 ? size + static_cast<uint64>(shift) : size - static_cast<uint64>(-shift);
const uint64 newSize = shift > 0 ? size + static_cast<uint64>(shift) : size - static_cast<uint64>(-shift);
// shift parent
bool updated = updateSize(element->parent(), shift + static_cast<int>(EbmlElement::calculateSizeDenotationLength(newSize)) - static_cast<int>(EbmlElement::calculateSizeDenotationLength(size)));
const bool updated = updateSize(element->parent(), shift + static_cast<int>(EbmlElement::calculateSizeDenotationLength(newSize)) - static_cast<int>(EbmlElement::calculateSizeDenotationLength(size)));
// apply new size
size = newSize;
return updated;