ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Search/URL.cpp
(Generate patch)

Comparing trunk/Search/URL.cpp (file contents):
Revision 211 by douglas, 2003-07-11T22:50:04-07:00 vs.
Revision 212 by douglas, 2003-07-19T21:00:25-07:00

# 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          {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines