Browse Source

Trade: don't use naked new.

The Pointer should just convert itself to a base type on return.
pull/482/merge
Vladimír Vondruš 2 weeks ago
parent
commit
1051785036
  1. 2
      src/Magnum/Trade/AbstractSceneConverter.cpp

2
src/Magnum/Trade/AbstractSceneConverter.cpp

@ -600,7 +600,7 @@ Containers::Pointer<AbstractImporter> AbstractSceneConverter::end() {
Containers::Optional<Trade::MeshData> _mesh;
};
return Containers::Pointer<AbstractImporter>(new SingleMeshImporter{Utility::move(_state->converted.mesh)});
return Containers::pointer<SingleMeshImporter>(Utility::move(_state->converted.mesh));
} else if(features() & SceneConverterFeature::ConvertMultiple) {
return doEnd();

Loading…
Cancel
Save