sofa
sofa copied to clipboard
[objectmodel] Avoid extra copy in DataFileNameVector
trafficstars
And also clean DataFileName and DataFileNameVector.
DataFileNameVector has been extracted in its own files.
The extra copy came from the DataFileNameVector constructor which took a sofa::type::vector<std::string> but it should take a sofa::type::SVector<std::string>. Therefore, there was an implicit conversion.
By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).
Reviewers will merge this pull-request only if
- it builds with SUCCESS for all platforms on the CI.
- it does not generate new warnings.
- it does not generate new unit test failures.
- it does not generate new scene test failures.
- it does not break API compatibility.
- it is more than 1 week old (or has fast-merge label).
[ci-build][force-full-build][with-all-tests]
Sorry @alxbilger conflict occurred ! :+1: for the cleaning!