# # patch "ChangeLog" # from [ca125534ab1a91128443d096c29f3eddc4e51936] # to [395776a7bab856a184a690a042895ea90144f8a5] # # patch "commands.cc" # from [0f98a702a8e1e21a444c42c7a79ec359f7f441c8] # to [82065a698ea04492cefc84b2935774b9fc3b92a8] # --- ChangeLog +++ ChangeLog @@ -1,3 +1,8 @@ +2005-05-09 Matt Johnston + + * commands.cc (pid_file): use fs::path .empty() rather than ==, since + boost 1.31 doesn't seem to have the latter. + 2005-05-08 Matthew Gregan * lua.cc (report_error, load{file,string}): New member functions. --- commands.cc +++ commands.cc @@ -281,7 +281,7 @@ explicit pid_file(fs::path const & p) : path(p) { - if (path == "") + if (path.empty()) return; N(!fs::exists(path), F("pid file '%s' already exists") % path.string()); file.open(path); @@ -291,7 +291,7 @@ ~pid_file() { - if (path == "") + if (path.empty()) return; pid_t pid; fs::ifstream(path) >> pid;