if(accessorIdx >= 0)
{
Dali::Vector<Vector3> bufferData;
- LoadDataFromAccessor(accessorIdx, bufferData, path, accessorArray, bufferViewArray, bufferArray);
+ LoadDataFromAccessor(accessorIdx, bufferData, std::move(path), accessorArray, bufferViewArray, bufferArray);
SetMeshInfoAndCanonize(meshInfo, bufferData);
- VertexBuffer vertexBuffer = CreateVertexBuffer<Vector3>(bufferData, map, type);
+ VertexBuffer vertexBuffer = CreateVertexBuffer<Vector3>(bufferData, std::move(map), type);
meshInfo.geometry.AddVertexBuffer(vertexBuffer);
}
}
if(accessorIdx >= 0)
{
Dali::Vector<T> bufferData;
- LoadDataFromAccessor(accessorIdx, bufferData, path, accessorArray, bufferViewArray, bufferArray);
+ LoadDataFromAccessor(accessorIdx, bufferData, std::move(path), accessorArray, bufferViewArray, bufferArray);
- VertexBuffer vertexBuffer = CreateVertexBuffer<T>(bufferData, map, type);
+ VertexBuffer vertexBuffer = CreateVertexBuffer<T>(bufferData, std::move(map), type);
meshInfo.geometry.AddVertexBuffer(vertexBuffer);
}
}
void SetIndexBuffersData(MeshInfo& meshInfo, std::string path, std::vector<AccessorInfo>& accessorArray, std::vector<BufferViewInfo>& bufferViewArray, std::vector<BufferInfo>& bufferArray, int32_t indexIdx)
{
Dali::Vector<uint16_t> indexBufferData;
- LoadDataFromAccessor(indexIdx, indexBufferData, path, accessorArray, bufferViewArray, bufferArray);
+ LoadDataFromAccessor(indexIdx, indexBufferData, std::move(path), accessorArray, bufferViewArray, bufferArray);
meshInfo.geometry.SetIndexBuffer(&indexBufferData[0], indexBufferData.Size());
}
if(!mContentTextVisual.Empty())
{
Property::Map content = mContentTextVisual; // Need this copy as there's no Value constructor which takes in a 'const Property::Map&'.
- map.Insert(Toolkit::Tooltip::Property::CONTENT, content);
+ map.Insert(Toolkit::Tooltip::Property::CONTENT, std::move(content));
}
else if(!mContentArray.Empty())
{
Property::Array content = mContentArray; // Need this copy as there's no Value constructor which takes in a 'const Property::Array&'.
- map.Insert(Toolkit::Tooltip::Property::CONTENT, content);
+ map.Insert(Toolkit::Tooltip::Property::CONTENT, std::move(content));
}
map.Insert(Toolkit::Tooltip::Property::LAYOUT, mLayout);