diff options
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; } } |