diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-05-09 13:07:41 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-05-09 13:07:41 +0000 |
commit | 197b6de9281b52d0b53c4b3fa3312e371b4469a9 (patch) | |
tree | bae93f8155da0770f5dd45d12ef1160ee99aed54 /cpp/src/FreezeScript/Functions.cpp | |
parent | Added identityToString and stringToIdentity to Communicator (diff) | |
download | ice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.tar.bz2 ice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.tar.xz ice-197b6de9281b52d0b53c4b3fa3312e371b4469a9.zip |
Fixed proxy and identity t/from string functions to use string converters
Diffstat (limited to 'cpp/src/FreezeScript/Functions.cpp')
-rw-r--r-- | cpp/src/FreezeScript/Functions.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
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") |