summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow_win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/nativewindow_win32.h')
-rw-r--r--plugingui/nativewindow_win32.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugingui/nativewindow_win32.h b/plugingui/nativewindow_win32.h
index 15781e4..57172f4 100644
--- a/plugingui/nativewindow_win32.h
+++ b/plugingui/nativewindow_win32.h
@@ -39,7 +39,7 @@ class Event;
class NativeWindowWin32 : public NativeWindow {
public:
- NativeWindowWin32(Window *window);
+ NativeWindowWin32(Window& window);
~NativeWindowWin32();
void setFixedSize(int width, int height) override;
@@ -53,13 +53,12 @@ public:
void grabMouse(bool grab) override;
bool hasEvent() override;
- Event *getNextEvent() override;
+ Event* getNextEvent() override;
private:
static LRESULT CALLBACK dialogProc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp);
- // Needed by dialogProc
- Window* window;
+ Window& window;
WNDID m_hwnd = 0;
char* m_className = nullptr;
Event* event = nullptr;