* UI refactoring, added display::Frame and started cleaning up the

code.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@747 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-07-26 21:41:09 +00:00
parent ef90f0f51e
commit fc76a11d71
41 changed files with 889 additions and 471 deletions
+1 -3
View File
@@ -108,9 +108,7 @@ parse_unknown(std::string::const_iterator first, std::string::const_iterator las
if (*first == '"') {
std::string::const_iterator next = std::find_if(++first, last, std::bind2nd(std::equal_to<char>(), '"'));
if (first == last ||
first == next ||
next == last)
if (first == last || first == next || next == last)
throw torrent::input_error("Could not find closing '\"'.");
*dest = std::string(first, next);