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

Comparing trunk/Zoe.cpp (file contents):
Revision 44 by douglas, 2004-08-15T23:40:19-07:00 vs.
Revision 50 by douglas, 2004-08-22T16:37:38-07:00

# Line 166 | Line 166 | void Zoe::configure()
166                  ++buddy)
167          {
168                  Buddy buddy_(**buddy/"login", **buddy/"rss", **buddy/"atom",
169 <                        !(**buddy/"link").IsEmpty() ? **buddy/"link" : link);
169 >                        !(**buddy/"link").IsEmpty() ? **buddy/"link" : (link
170 >                        + std::string(**buddy/"login") + ".html"));
171  
172                  this->buddies.insert(buddy_);
173          }
# Line 200 | Line 201 | void Zoe::initialize()
201  
202          while (buddies->MoveNext())
203          {
204 <                Buddy buddy(*this->buddies.find(buddies->GetString("buddy")));
204 >                if (this->buddies.find(buddies->GetString("buddy")) != this->buddies.end())
205 >                {
206 >                        Buddy buddy(*this->buddies.find(buddies->GetString("buddy")));
207  
208 <                buddy.setId(lexical_cast<ext::Uuid>(buddies->GetString("id")));
209 <                buddies_.insert(buddy);
208 >                        buddy.setId(lexical_cast<ext::Uuid>(buddies->GetString("id")));
209 >                        buddies_.insert(buddy);
210 >                }
211          }
212  
213          std::vector<Buddy> difference;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines