From 3ae6fded83ac8ef5cec50b402ec046268329027f Mon Sep 17 00:00:00 2001
From: xj qian <qianxj15@sina.com>
Date: 星期三, 17 七月 2024 20:56:30 +0800
Subject: [PATCH] update code
---
jrj/project/business/SystemSettings/AddUserGroup.cpp | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
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;
}
--
Gitblit v1.9.3