From 197b6de9281b52d0b53c4b3fa3312e371b4469a9 Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Tue, 9 May 2006 13:07:41 +0000 Subject: Fixed proxy and identity t/from string functions to use string converters --- cpp/src/FreezeScript/Functions.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cpp/src/FreezeScript/Functions.cpp') diff --git a/cpp/src/FreezeScript/Functions.cpp b/cpp/src/FreezeScript/Functions.cpp index fe0cd7a031e..b979dcb25eb 100644 --- a/cpp/src/FreezeScript/Functions.cpp +++ b/cpp/src/FreezeScript/Functions.cpp @@ -14,8 +14,9 @@ using namespace std; bool -FreezeScript::invokeGlobalFunction(const string& name, const DataList& args, DataPtr& result, - const DataFactoryPtr& factory, const ErrorReporterPtr& errorReporter) +FreezeScript::invokeGlobalFunction(const Ice::CommunicatorPtr& communicator, const string& name, const DataList& args, + DataPtr& result, const DataFactoryPtr& factory, + const ErrorReporterPtr& errorReporter) { // // Global function. @@ -57,7 +58,7 @@ FreezeScript::invokeGlobalFunction(const string& name, const DataList& args, Dat Ice::Identity id; try { - id = Ice::stringToIdentity(idstr); + id = communicator->stringToIdentity(idstr); } catch(const Ice::IdentityParseException& ex) { @@ -114,7 +115,7 @@ FreezeScript::invokeGlobalFunction(const string& name, const DataList& args, Dat assert(member); id.category = member->stringValue(); - result = factory->createString(Ice::identityToString(id), false); + result = factory->createString(communicator->identityToString(id), false); return true; } else if(name == "stringToProxy") -- cgit v1.2.3