mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-06-08 03:03:50 +00:00
Fix some variable copied when could be moved warnings
This commit is contained in:
@@ -4352,7 +4352,7 @@ static bool ParseImage(Image *image, const int image_idx, std::string *err,
|
||||
// Just only save some information here. Loading actual image data from
|
||||
// bufferView is done after this `ParseImage` function.
|
||||
image->bufferView = bufferView;
|
||||
image->mimeType = mime_type;
|
||||
image->mimeType = std::move( mime_type );
|
||||
image->width = width;
|
||||
image->height = height;
|
||||
|
||||
@@ -5316,7 +5316,7 @@ static bool ParsePbrMetallicRoughness(
|
||||
}
|
||||
return false;
|
||||
}
|
||||
pbr->baseColorFactor = baseColorFactor;
|
||||
pbr->baseColorFactor = std::move( baseColorFactor );
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user