1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-21 20:38:45 +00:00
freebsd-ports/net/xmlrpc-c-devel/files/patch-examples::interop-client::InteropEchoProxy.cc
Kirill Ponomarev 9d51d547e2 - Fix build on -current
PR:		ports/63752
Submitted by:	Ports Fury
2004-03-04 19:29:05 +00:00

30 lines
1.1 KiB
C++

--- examples/interop-client/InteropEchoProxy.cc.orig Wed Apr 25 00:17:25 2001
+++ examples/interop-client/InteropEchoProxy.cc Tue Mar 2 23:39:39 2004
@@ -12,7 +12,7 @@
public:
InteropEchoProxy (const XmlRpcClient& client)
: mClient(client) {}
- InteropEchoProxy (const string& server_url)
+ InteropEchoProxy (const std::string& server_url)
: mClient(XmlRpcClient(server_url)) {}
InteropEchoProxy (const InteropEchoProxy& o)
: mClient(o.mClient) {}
@@ -23,7 +23,7 @@
}
/* Echo an arbitrary XML-RPC string. */
- string echoString (string string1);
+ std::string echoString (std::string string1);
/* Echo an arbitrary XML-RPC integer. */
XmlRpcValue::int32 echoInteger (XmlRpcValue::int32 int1);
@@ -55,7 +55,7 @@
#include <XmlRpcCpp.h>
#include "InteropEchoProxy.h"
-string InteropEchoProxy::echoString (string string1) {
+std::string InteropEchoProxy::echoString (std::string string1) {
XmlRpcValue params = XmlRpcValue::makeArray();
params.arrayAppendItem(XmlRpcValue::makeString(string1));
XmlRpcValue result = this->mClient.call("interopEchoTests.echoString", params);