Clean up pointer code

The previous one was remnant of scrapped code.
This commit is contained in:
arch1t3cht 2022-07-19 02:45:04 +02:00
parent eb07b3f9b8
commit 7ea9b95fe0

View file

@ -63,8 +63,7 @@ namespace {
} }
void operator()(agi::Context *c) override { void operator()(agi::Context *c) override {
std::unique_ptr<VisualToolVectorClip> vclip = agi::make_unique<VisualToolVectorClip>(c->videoDisplay, c); c->videoDisplay->SetTool(agi::make_unique<VisualToolVectorClip>(c->videoDisplay, c));
c->videoDisplay->SetTool(std::move(vclip));
c->videoDisplay->SetVectorClipTool(M); c->videoDisplay->SetVectorClipTool(M);
} }
}; };