diff options
author | Mark Spruiell <mes@zeroc.com> | 2002-02-02 00:27:09 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2002-02-02 00:27:09 +0000 |
commit | 01ef57bbe1a1025605aa56303d350f526586f315 (patch) | |
tree | f2f5de1cb3b6ad4590a5bff9ca672cb630bb3f98 /cpp/src/Ice/IdentityUtil.cpp | |
parent | Fix bug in OutputUtil.cpp which stopped IceXML/encoding from working (diff) | |
download | ice-01ef57bbe1a1025605aa56303d350f526586f315.tar.bz2 ice-01ef57bbe1a1025605aa56303d350f526586f315.tar.xz ice-01ef57bbe1a1025605aa56303d350f526586f315.zip |
fixing identity character bug
Diffstat (limited to 'cpp/src/Ice/IdentityUtil.cpp')
-rw-r--r-- | cpp/src/Ice/IdentityUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/src/Ice/IdentityUtil.cpp b/cpp/src/Ice/IdentityUtil.cpp index 3de6804841d..6aab2c6a005 100644 --- a/cpp/src/Ice/IdentityUtil.cpp +++ b/cpp/src/Ice/IdentityUtil.cpp @@ -24,7 +24,7 @@ Identity Ice::stringToIdentity(const string& s) { Identity ident; - string::size_type pos = s.find('#'); + string::size_type pos = s.find_first_of("#/"); if (pos != string::npos) { ident.category = s.substr(0, pos); @@ -46,6 +46,6 @@ Ice::identityToString(const Identity& ident) } else { - return ident.category + '#' + ident.name; + return ident.category + '/' + ident.name; } } |