From d79b1d94a13536a74d8a72caab3a1ed3c9e2e840 Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期一, 01 七月 2024 14:57:39 +0800
Subject: [PATCH] bug createinstance less static

---
 jrj/project/vindexmenu.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/jrj/project/vindexmenu.cpp b/jrj/project/vindexmenu.cpp
index 6945e29..0a54c11 100644
--- a/jrj/project/vindexmenu.cpp
+++ b/jrj/project/vindexmenu.cpp
@@ -35,8 +35,7 @@
 public:
 	static vindexmenu* CreateInstance(void* implPtr, void* hWnd)
 	{
-		vindexmenu* pWin = new vindexmenu(implPtr, (HWND)hWnd);
-		return pWin;
+		return new vindexmenu(implPtr, (HWND)hWnd);
 	}
 
 	int OnHideWin()

--
Gitblit v1.9.3