mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-08 07:09:21 +00:00
* Cleaned up the exception classes so they require less space. This
reduced the size of the stripped libtorrent by 1/7. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@822 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -61,12 +61,12 @@ TextElementList::print(char* first, char* last, Canvas::attributes_list* attribu
|
||||
char* columnEnd = std::min(last, first + *m_columnWidth);
|
||||
|
||||
if (columnEnd < first || columnEnd > last)
|
||||
throw torrent::client_error("TextElementList::print(...) columnEnd < first || columnEnd > last.");
|
||||
throw torrent::internal_error("TextElementList::print(...) columnEnd < first || columnEnd > last.");
|
||||
|
||||
first = (*itr)->print(first, columnEnd, attributes, object);
|
||||
|
||||
if (first > columnEnd)
|
||||
throw torrent::client_error("TextElementList::print(...) first > columnEnd.");
|
||||
throw torrent::internal_error("TextElementList::print(...) first > columnEnd.");
|
||||
|
||||
std::memset(first, ' ', columnEnd - first);
|
||||
first = columnEnd;
|
||||
|
||||
Reference in New Issue
Block a user