"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "srcs/common/itempropertycontainer.cpp" between
heif-3.6.1.tar.gz and heif-3.6.2.tar.gz

About: HEIF (High Efficiency Image File Format) is a visual media container format for images and image sequences (MPEG-standard). This HEIF engine demonstrates its powerful features and capabilities (under Nokia HEIF license).

itempropertycontainer.cpp  (heif-3.6.1):itempropertycontainer.cpp  (heif-3.6.2)
/* This file is part of Nokia HEIF library /* This file is part of Nokia HEIF library
* *
* Copyright (c) 2015-2020 Nokia Corporation and/or its subsidiary(-ies). All ri ghts reserved. * Copyright (c) 2015-2021 Nokia Corporation and/or its subsidiary(-ies). All ri ghts reserved.
* *
* Contact: heif@nokia.com * Contact: heif@nokia.com
* *
* This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its * This software, including documentation, is protected by copyright controlled by Nokia Corporation and/ or its
* subsidiaries. All rights are reserved. * subsidiaries. All rights are reserved.
* *
* Copying, including reproducing, storing, adapting or translating, any or all of this material requires the prior * Copying, including reproducing, storing, adapting or translating, any or all of this material requires the prior
* written consent of Nokia. * written consent of Nokia.
*/ */
skipping to change at line 39 skipping to change at line 39
return nullptr; return nullptr;
} }
return mProperties.at(index).get(); return mProperties.at(index).get();
} }
Box* ItemPropertyContainer::getProperty(const size_t index) Box* ItemPropertyContainer::getProperty(const size_t index)
{ {
return const_cast<Box*>(static_cast<const ItemPropertyContainer*>(this)->get Property(index)); return const_cast<Box*>(static_cast<const ItemPropertyContainer*>(this)->get Property(index));
} }
std::uint16_t ItemPropertyContainer::addProperty(std::shared_ptr<Box> box) std::uint16_t ItemPropertyContainer::addProperty(const std::shared_ptr<Box>& box )
{ {
mProperties.push_back(box); mProperties.push_back(box);
return static_cast<std::uint16_t>(mProperties.size()); return static_cast<std::uint16_t>(mProperties.size());
} }
void ItemPropertyContainer::writeBox(BitStream& bitstream) const void ItemPropertyContainer::writeBox(BitStream& bitstream) const
{ {
writeBoxHeader(bitstream); writeBoxHeader(bitstream);
for (auto& property : mProperties) for (auto& property : mProperties)
{ {
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)