diff options
author | Matthew Newhook <matthew@zeroc.com> | 2002-04-29 20:32:05 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2002-04-29 20:32:05 +0000 |
commit | 5678ce3b4d1729e00dd22614546c64d0b68666b9 (patch) | |
tree | a3f7fbf03f14b7d418de563e3edab912256ef175 /cpp/src | |
parent | minor fix (diff) | |
download | ice-5678ce3b4d1729e00dd22614546c64d0b68666b9.tar.bz2 ice-5678ce3b4d1729e00dd22614546c64d0b68666b9.tar.xz ice-5678ce3b4d1729e00dd22614546c64d0b68666b9.zip |
fixed bug with ClientBlobject.
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Glacier/ClientBlobject.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/Glacier/ClientBlobject.cpp b/cpp/src/Glacier/ClientBlobject.cpp index 7eca7e65bbd..e0562ec718d 100644 --- a/cpp/src/Glacier/ClientBlobject.cpp +++ b/cpp/src/Glacier/ClientBlobject.cpp @@ -27,16 +27,16 @@ Glacier::ClientBlobject::ClientBlobject(const CommunicatorPtr& communicator, PropertiesPtr properties = _communicator->getProperties(); _traceLevel = properties->getPropertyAsInt("Glacier.Router.Trace.Client"); - size_t current = 0; const string ws = " \t"; - do + size_t current = allowCategories.find_first_not_of(ws, 0); + while (current != string::npos) { size_t pos = allowCategories.find_first_of(ws, current); size_t len = (pos == string::npos) ? string::npos : pos - current; - _allowCategories.insert(allowCategories.substr(current, len)); + string category = allowCategories.substr(current, len); + _allowCategories.insert(category); current = allowCategories.find_first_not_of(ws, pos); } - while (current != string::npos); } Glacier::ClientBlobject::~ClientBlobject() |