properly call make_unique

This commit is contained in:
Li-Ta Lo 2023-06-05 11:20:49 -06:00
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)