Fix warning for non-const default in AssetServer

This commit is contained in:
Ryan Huffman 2017-08-31 16:22:46 -07:00
parent bf53161a0b
commit 7a68788c8c
2 changed files with 2 additions and 2 deletions

View file

@ -1255,7 +1255,7 @@ std::pair<bool, AssetMeta> AssetServer::readMetaFile(AssetHash hash) {
return { false, {} };
}
bool AssetServer::writeMetaFile(AssetHash originalAssetHash, AssetMeta& meta) {
bool AssetServer::writeMetaFile(AssetHash originalAssetHash, const AssetMeta& meta) {
// construct the JSON that will be in the meta file
QJsonObject metaFileObject;

View file

@ -122,7 +122,7 @@ private:
/// Create meta file to describe baked content for original asset
std::pair<bool, AssetMeta> readMetaFile(AssetHash hash);
bool writeMetaFile(AssetHash originalAssetHash, AssetMeta& meta = AssetMeta());
bool writeMetaFile(AssetHash originalAssetHash, const AssetMeta& meta = AssetMeta());
/// Remove baked paths when the original asset is deleteds
void removeBakedPathsForDeletedAsset(AssetHash originalAssetHash);