Skip to content

Commit

Permalink
Fix a warning when compiling with Boost 1.50
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Jul 28, 2012
1 parent 7b73a70 commit 6bedaab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/crashreporter/tbg/TBG.cpp
Expand Up @@ -198,15 +198,15 @@ bool Server::findIssue(const QString& text, int& issue_id)
// add a dependency to QtXmlPatterns...
// Look for the first "/rss/channel/item/link" entry...
const QString XML_PATH[] = { "rss", "channel", "item", "link" };
int currentItem = 0;
size_t currentItem = 0;
QString issueLink;

while(!xml.atEnd() && !xml.hasError())
{
// Read next element
QXmlStreamReader::TokenType token = xml.readNext();

if(currentItem == boost::size(XML_PATH))
if(currentItem == size_t(boost::size(XML_PATH)))
{
issueLink = xml.text().toString();
break;
Expand Down

0 comments on commit 6bedaab

Please sign in to comment.