From 89c226a7da5ffc6748ff3ef70aacad7625bafa3e Mon Sep 17 00:00:00 2001 From: xj qian <qianxj15@sina.com> Date: 星期四, 05 九月 2024 15:03:11 +0800 Subject: [PATCH] update so payterm --- jrj/xframe/vbusiness/vutil/publiccode.vutil.vbusiness.hpp | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/jrj/xframe/vbusiness/vutil/publiccode.vutil.vbusiness.hpp b/jrj/xframe/vbusiness/vutil/publiccode.vutil.vbusiness.hpp index fb10202..7e44695 100644 --- a/jrj/xframe/vbusiness/vutil/publiccode.vutil.vbusiness.hpp +++ b/jrj/xframe/vbusiness/vutil/publiccode.vutil.vbusiness.hpp @@ -2,7 +2,7 @@ #include <wobject/xwin.hpp> #include <wobject/xurl.hpp> - +#include <memory.h> struct PUser { string id; @@ -46,7 +46,7 @@ } //取当前用户 - static PUser GetUser(xstring id) + static PUser& GetUser(xstring id) { string userno = xaserver::GetUserNo(); //trace(userno); @@ -61,6 +61,7 @@ //trace(L"---%s",x.GetXml()); KXMLDOMElement e = x.documentElement(); PUser& p = *(new PUser); + ::memset(&p, 0,sizeof(PUser)); if (e) { if (e.selectSingleNode(L"任职")) p.id = e.selectSingleNode(L"任职").text(); @@ -91,7 +92,7 @@ } return p; } - static PUser GetUser() + static PUser& GetUser() { return GetUser(L""); } @@ -101,7 +102,7 @@ { /* if (sOrgID == "") return "4.2"; - xml x = new xml; + xml x.setNativePointer(xml::CreateInstance()); xaserverarg args=new xaserverarg; args.setNativePointer(args.CreateInstance()); @@ -235,7 +236,7 @@ static KXMLDOMDocument getAssignment(string sguid, KXMLDOMDocument x) { - //xml x = new xml; + //xml //x.setNativePointer(xml::CreateInstance()); xaserverarg arg; arg.setNativePointer(arg.CreateInstance()); -- Gitblit v1.9.3