# | Line 46 | Line 46 | |
---|---|---|
46 | // | |
47 | // Douglas Thrift | |
48 | // | |
49 | < | // $Id: URL.cpp,v 1.7 2003/07/12 05:50:04 douglas Exp $ |
49 | > | // $Id: URL.cpp,v 1.8 2003/07/20 04:00:25 douglas Exp $ |
50 | ||
51 | #include "URL.h" | |
52 | ||
# | Line 137 | Line 137 | void URL::setURL(const string& url) | |
137 | if (colon != string::npos && colon < end) | |
138 | { | |
139 | address = url.substr(begin, colon - begin); | |
140 | < | port = strtoul(url.substr(colon + 1, end - colon - 1).c_str(), 0, 0); |
140 | > | |
141 | > | istringstream number((url.substr(colon + 1, end - colon - 1))); |
142 | > | |
143 | > | number >> port; |
144 | } | |
145 | else | |
146 | { |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |