[mapguide-commits] r6858 - trunk/MgDev/Server/src/Common/Manager

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Thu Jul 5 23:34:22 PDT 2012


Author: hubu
Date: 2012-07-05 23:34:22 -0700 (Thu, 05 Jul 2012)
New Revision: 6858

Modified:
   trunk/MgDev/Server/src/Common/Manager/Connection.h
   trunk/MgDev/Server/src/Common/Manager/SessionInfo.h
Log:
Submit on behalf of Andy Zhang
Integrate fix of ticket http://trac.osgeo.org/mapguide/ticket/1423 to Trunk.

Modified: trunk/MgDev/Server/src/Common/Manager/Connection.h
===================================================================
--- trunk/MgDev/Server/src/Common/Manager/Connection.h	2012-07-06 05:57:15 UTC (rev 6857)
+++ trunk/MgDev/Server/src/Common/Manager/Connection.h	2012-07-06 06:34:22 UTC (rev 6858)
@@ -129,22 +129,22 @@
 
 inline STRING MgConnection::GetClientAgent() const
 {
-    return m_clientAgent;
+    return (STRING)m_clientAgent.c_str();
 }
 
 inline STRING MgConnection::GetClientIp() const
 {
-    return m_clientIp;
+    return (STRING)m_clientIp.c_str();
 }
 
 inline STRING MgConnection::GetUserName() const
 {
-    return m_userName;
+    return (STRING)m_userName.c_str();
 }
 
 inline STRING MgConnection::GetSessionId() const
 {
-    return m_sessionId;
+    return (STRING)m_sessionId.c_str();
 }
 
 inline const ACE_Time_Value& MgConnection::GetStartTime() const

Modified: trunk/MgDev/Server/src/Common/Manager/SessionInfo.h
===================================================================
--- trunk/MgDev/Server/src/Common/Manager/SessionInfo.h	2012-07-06 05:57:15 UTC (rev 6857)
+++ trunk/MgDev/Server/src/Common/Manager/SessionInfo.h	2012-07-06 06:34:22 UTC (rev 6858)
@@ -77,17 +77,17 @@
 
 inline STRING MgSessionInfo::GetUser() const
 {
-    return m_user;
+    return (STRING)m_user.c_str();
 }
 
 inline STRING MgSessionInfo::GetClient() const
 {
-    return m_client;
+    return (STRING)m_client.c_str();
 }
 
 inline STRING MgSessionInfo::GetClientIp() const
 {
-    return m_clientIp;
+    return (STRING)m_clientIp.c_str();
 }
 
 inline const MgDateTime& MgSessionInfo::GetStartTime() const



More information about the mapguide-commits mailing list