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 348 by douglas, 2004-12-16T16:52:24-08:00 vs.
Revision 423 by douglas, 2005-03-09T19:23:17-08:00

# Line 18 | Line 18 | struct SiteMapperCommand : public app::A
18  
19                  ext::String siteIndex, siteMap;
20  
21 <                _foreach (app::ArgumentList, arg, args)
21 >                _foreach (const app::ArgumentList, arg, args)
22                  {
23                          Matcher matcher;
24  
# Line 129 | Line 129 | void SiteMapper::newIndex(const ext::Str
129  
130   bool SiteMapper::newIndex(ext::Vector<Page>& pages, Page& page)
131   {
132 <        _mforeach (ext::Vector<Page>, page_, pages)
132 >        _foreach (ext::Vector<Page>, page_, pages)
133          {
134                  if (*page_ == page.getAddress())
135                  {
# Line 177 | Line 177 | void SiteMapper::newMap(const ext::Strin
177  
178          xml::ScopeElement section(xml, "section"), list(xml, "list");
179  
180 <        _mforeach (ext::Vector<Page>, page, pages)
180 >        _foreach (ext::Vector<Page>, page, pages)
181          {
182                  if (newPages.find(page->getAddress()) != newPages.end()) newMap(page->getChildren(), page->getPath(), newPages.find(page->getAddress())->second);
183  
# Line 187 | Line 187 | void SiteMapper::newMap(const ext::Strin
187  
188   void SiteMapper::newMap(ext::Vector<Page>& pages, const ext::String& childOf, std::multimap<std::string, Page>& newPages)
189   {
190 <        _mforeach (ext::Vector<Page>, page, pages) newMap(page->getChildren(), page->getPath(), newPages);
190 >        _foreach (ext::Vector<Page>, page, pages) newMap(page->getChildren(), page->getPath(), newPages);
191  
192          typedef std::multimap<std::string, Page> MultiMap;
193  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines