Skip to content

Commit

Permalink
Fix clang warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse Heikkila committed Jun 20, 2016
1 parent f22d3a0 commit f23fcf8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Srcs/common/hevcsampleentry.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ class HevcSampleEntry : public VisualSampleEntryBox

/** @brief Creates the bitstream that represents the box in the ISOBMFF file
* @param [out] bitstr Bitstream that contains the box data. */
virtual void writeBox(BitStream& bitstr);
virtual void writeBox(BitStream& bitstr) override;

/** @brief Parses a HevcSampleEntry Box bitstream and fills in the necessary member variables
* @details If there is an unknown box present then a warning is logged
* @param [in] bitstr Bitstream that contains the box data */
virtual void parseBox(BitStream& bitstr);
virtual void parseBox(BitStream& bitstr) override;

private:
HevcConfigurationBox mHevcConfigurationBox;
Expand Down
2 changes: 1 addition & 1 deletion Srcs/common/itemreferencebox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ std::vector<SingleItemTypeReferenceBox> ItemReferenceBox::getReferencesOfType(co
references.push_back(reference);
}
}
return std::move(references);
return references;
}

void ItemReferenceBox::add(const std::string& type, const std::uint32_t fromId, const std::uint32_t toId)
Expand Down
4 changes: 1 addition & 3 deletions Srcs/reader/hevcimagefilereader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1507,8 +1507,6 @@ HevcImageFileReader::Properties HevcImageFileReader::processItemProperties(const
const std::vector<uint32_t> itemIds = mMetaBoxMap.at(contextId).getItemInfoBox().getItemIds();
for (const auto itemId : itemIds)
{
const ItemInfoEntry& item = mMetaBoxMap.at(contextId).getItemInfoBox().getItemById(itemId);

ItemPropertiesBox::PropertyInfos propertyVector = iprp.getItemProperties(itemId);

// The following loop copies item property information to interface. Data structures are essentially identical
Expand Down Expand Up @@ -1624,7 +1622,7 @@ std::vector<std::uint8_t> HevcImageFileReader::loadItemData(const MetaBox& metaB
std::vector<uint8_t> data;
readItem(metaBox, itemId, data);
mInputStream->seekg(oldPosition);
return std::move(data);
return data;
}

/** @details Method can not handle items located in different files. Therefore also zero length items are not supported.
Expand Down
4 changes: 2 additions & 2 deletions Srcs/writer/filewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ BitStream FileWriter::writeFtyp(const IsoMediaFile::Brands& config)

ftypBox = ftypWriter.writeBox(output);
mBoxSizes.insert(std::make_pair(OffsetMapKeys::FTYP, ftypBox.getSize()));
return std::move(output);
return output;
}

BitStream FileWriter::writeMeta(const OffsetMap& offsets)
Expand Down Expand Up @@ -422,7 +422,7 @@ std::vector<MediaDataBox> FileWriter::writeMdat()
mBoxSizes.insert(std::make_pair(mediaWriter.first, boxes.back().getSize()));
}

return std::move(boxes);
return boxes;
}

FileWriter::OffsetMap FileWriter::makeOffsetMap(const SizesMap& boxSizes) const
Expand Down
2 changes: 1 addition & 1 deletion Srcs/writer/trackwriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ std::unique_ptr<HevcSampleEntry> TrackWriter::getHevcSampleEntry()
hevcSampleEntry->setWidth(imageWidth);
hevcSampleEntry->setHeight(imageHeight);

return std::move(hevcSampleEntry);
return hevcSampleEntry;
}


Expand Down

0 comments on commit f23fcf8

Please sign in to comment.