From 66ba8d62628967a305b5b0e16a6317f416933699 Mon Sep 17 00:00:00 2001
From: LiFan <2308045698@qq.com>
Date: 星期三, 17 七月 2024 17:15:43 +0800
Subject: [PATCH] update

---
 jrj/project/business/SystemSettings/AddUser.cpp         |    6 ++----
 jrj/project/business/SystemSettings/AddUserGroup.cpp    |    9 +++------
 jrj/project/business/SystemSettings/Developer.Synch.cpp |    4 ++--
 3 files changed, 7 insertions(+), 12 deletions(-)

diff --git a/jrj/project/business/SystemSettings/AddUser.cpp b/jrj/project/business/SystemSettings/AddUser.cpp
index 4f10945..e92636d 100644
--- a/jrj/project/business/SystemSettings/AddUser.cpp
+++ b/jrj/project/business/SystemSettings/AddUser.cpp
@@ -138,8 +138,7 @@
 
 	int ClearItem(xstring item)
 	{
-		control xc = new control;
-		xc.setNativePointer(GetControl(item));
+		xcontrol xc =GetControl(item);
 		xc.SetText(L"");
 		return 1;
 	}
@@ -191,8 +190,7 @@
 	}
 
 	int SetItem(xstring value, xstring item) {
-		control xc = new control;
-		xc.setNativePointer(GetControl(item));
+		xcontrol xc = GetControl(item);
 		xc.SetText(value);
 		return 1;
 	}
diff --git a/jrj/project/business/SystemSettings/AddUserGroup.cpp b/jrj/project/business/SystemSettings/AddUserGroup.cpp
index 978f2fa..ab4a3d2 100644
--- a/jrj/project/business/SystemSettings/AddUserGroup.cpp
+++ b/jrj/project/business/SystemSettings/AddUserGroup.cpp
@@ -41,8 +41,7 @@
 	}
 	int AppendItem(xml x, KXMLDOMElement r, xstring item) {
 		var e = x.createElement(item);
-		control xc = new control;
-		xc.setNativePointer(GetControl(item));
+		xcontrol xc = GetControl(item);
 		e.text() = xc.GetText();
 		r.appendChild(e);
 		return 1;
@@ -50,8 +49,7 @@
 	int AppendAttrib(xml x, KXMLDOMElement r, xstring item) {
 		var e = x.createElement(item);
 		//xcontrol xc = GetControl(item);
-		control xc = new control;
-		xc.setNativePointer(GetControl(item));
+		xcontrol xc= GetControl(item);
 		e.text() = xc.GetText();
 		r.setAttribute(item, xc.GetText());
 		return 1;
@@ -136,8 +134,7 @@
 	}
 
 	int SetItem(xstring value, xstring item) {
-		control xc = new control;
-		xc.setNativePointer(GetControl(item));
+		xcontrol xc = GetControl(item);
 		xc.SetText(value);
 		return 1;
 	}
diff --git a/jrj/project/business/SystemSettings/Developer.Synch.cpp b/jrj/project/business/SystemSettings/Developer.Synch.cpp
index 8789e6e..f9189cc 100644
--- a/jrj/project/business/SystemSettings/Developer.Synch.cpp
+++ b/jrj/project/business/SystemSettings/Developer.Synch.cpp
@@ -93,13 +93,13 @@
 				
 				int hP2Item = 0;
 				int hDomainItem = 0;
-				if(xtreeview::GetParentItem(tv_gs.GetId(), hItem)<=0)
+				if(tv_gs.GetParentItem(hItem)<=0)
 				{
 					hDomainItem = hItem;
 				}else
 				{
 					hP2Item = GetP2Item(hItem);
-					hDomainItem =tv_gs.GetParentItem(tv_gs.GetId(), hP2Item);
+					hDomainItem =tv_gs.GetParentItem(hP2Item);
 				}	
 
 				//find project folder

--
Gitblit v1.9.3