Make this a unique_prt

This commit is contained in:
SimoneN64
2024-01-18 23:35:30 +01:00
parent 6e010b4adb
commit 7f1bef6037
5 changed files with 9 additions and 8 deletions

View File

@@ -22,8 +22,8 @@ RenderWidget::RenderWidget(QWidget* parent) : QWidget(parent) {
windowHandle()->setVulkanInstance(&instance.get_qvkinstance());
windowHandle()->create();
wsiPlatform = new QtWSIPlatform(windowHandle());
wsiPlatform = std::make_unique<QtWSIPlatform>(windowHandle());
windowInfo = std::make_unique<QtParallelRdpWindowInfo>(windowHandle());
LoadWSIPlatform(&instance, wsiPlatform, std::move(windowInfo));
LoadWSIPlatform(&instance, std::move(wsiPlatform), std::move(windowInfo));
}