mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
properly call make_unique
This commit is contained in:
parent
10bcf618f6
commit
85b4b18fca
@ -55,9 +55,8 @@ void ColorLegendAnnotation::Render(const vtkm::rendering::Camera& camera,
|
||||
|
||||
while (this->Annot.size() < this->Labels.size())
|
||||
{
|
||||
this->Annot.push_back(
|
||||
std::make_unique<TextAnnotationScreen>(vtkm::rendering::TextAnnotationScreen(
|
||||
"test", this->LabelColor, this->FontScale, vtkm::Vec2f_32(0, 0), 0)));
|
||||
this->Annot.push_back(std::make_unique<TextAnnotationScreen>(
|
||||
"test", this->LabelColor, this->FontScale, vtkm::Vec2f_32(0, 0), 0));
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i < this->Annot.size(); ++i)
|
||||
|
Loading…
Reference in New Issue
Block a user