Convert m_pWindow from pointer to object

The extra layer of indirection was unnecessary and had no benefit.
This commit is contained in:
Vasily
2019-11-30 18:14:49 +01:00
committed by username223
parent 2b9b3d653a
commit 6c04dd25b1
2 changed files with 17 additions and 19 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ private:
= vr::k_ulOverlayHandleInvalid;
QQuickRenderControl m_renderControl;
std::unique_ptr<QQuickWindow> m_pWindow;
QQuickWindow m_window{ &m_renderControl };
std::unique_ptr<QOpenGLFramebufferObject> m_pFbo;
std::unique_ptr<QOpenGLContext> m_pOpenGLContext;
std::unique_ptr<QOffscreenSurface> m_pOffscreenSurface;