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

Comparing DecentralizedMedia/DecentralizedMedia.cpp (file contents):
Revision 493 by douglas, 2005-06-17T03:26:33-07:00 vs.
Revision 494 by douglas, 2005-06-17T12:21:48-07:00

# Line 49 | Line 49 | int Main(const app::Options& options)
49  
50   DecentralizedMedia::DecentralizedMedia(const ext::RedBlackSet<ext::String>& extensions, const ext::RedBlackSet<ext::String>& locals) : waf::Server(_B("Web")), process(bmp.IsRunning() ? NULL : new api::Process(_B("/usr/X11R6/bin/beep-media-player"))), connection(dbi::GetDriver("pgsql")->Connect("", "douglas", "", "media")), extensions(extensions)
51   {
52 <        foreach (const ext::RedBlackSet<ext::String>, local, locals) if (!connection->Parse(_B("SELECT path FROM folders WHERE path = ?"))->Execute(*local)->MoveNext())
52 >        _foreach (const ext::RedBlackSet<ext::String>, local, locals) if (!connection->Parse(_B("SELECT path FROM folders WHERE path = ?"))->Execute(*local)->MoveNext())
53                  connection->Parse(_B("INSERT INTO folders (path) VALUES (?)"))->Execute(*local);
54  
55          {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines