ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/SiteMapper/SiteMapper.cpp
(Generate patch)

Comparing SiteMapper/SiteMapper.cpp (file contents):
Revision 156 by Douglas Thrift, 2004-06-10T01:24:32-07:00 vs.
Revision 237 by Douglas Thrift, 2004-09-10T16:22:07-07:00

# Line 60 | Line 60 | void SiteMapper::oldMap(const string& si
60          ext::Handle<xml::Document> document(xml::Parse(siteMap));
61          ext::Handle<xml::Node> list(*document/"page"/"section"/"list");
62  
63 <        comment = *document/"comment()";
63 >        comment = ext::String(*document/"comment()");
64  
65          oldMap(pages, list);
66   }
# Line 72 | Line 72 | void SiteMapper::oldMap(vector<Page>& pa
72          for (xml::NodeSet::Iterator node(nodes.Begin()); node != nodes.End();
73                  ++node)
74          {
75 <                string url(**node/"link"/"@address"), title(**node/"link");
75 >                string url(ext::String(**node/"link"/"@address")),
76 >                        title(ext::String(**node/"link"));
77                  Page page(url, title);
78                  ext::Handle<xml::Node> list(**node/"list");
79  
# Line 90 | Line 91 | void SiteMapper::newIndex(const string&
91          for (xml::NodeSet::Iterator node(nodes.Begin()); node != nodes.End();
92                  ++node)
93          {
94 <                string address(**node/"address");
95 <                string port(**node/"port");
94 >                string address(ext::String(**node/"address"));
95 >                string port(ext::String(**node/"port"));
96  
97                  if (!port.empty())
98                  {
99                          address += ':' + port;
100                  }
101  
102 <                string path(**node/"path"), title(**node/"title");
102 >                string path(ext::String(**node/"path")),
103 >                        title(ext::String(**node/"title"));
104                  Page page(address, path, title);
105                  Matcher matcher;
106  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines