summaryrefslogtreecommitdiffstats
path: root/src/fetch/googlescholarfetcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fetch/googlescholarfetcher.cpp')
-rw-r--r--src/fetch/googlescholarfetcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fetch/googlescholarfetcher.cpp b/src/fetch/googlescholarfetcher.cpp
index 19e69c6..8ac7d4d 100644
--- a/src/fetch/googlescholarfetcher.cpp
+++ b/src/fetch/googlescholarfetcher.cpp
@@ -28,7 +28,7 @@
#include <tqlayout.h>
namespace {
- static const int GOOGLE_MAX_RETURNS_TOTAL = 20;
+ static const size_t GOOGLE_MAX_RETURNS_TOTAL = 20;
static const char* SCHOLAR_BASE_URL = "http://scholar.google.com/scholar";
}
@@ -157,7 +157,7 @@ void GoogleScholarFetcher::slotComplete(TDEIO::Job* job_) {
TQString text = TQString::fromUtf8(m_data, m_data.size());
TQString bibtex;
- int count = 0;
+ size_t count = 0;
for(int pos = text.find(m_bibtexRx); count < m_limit && pos > -1; pos = text.find(m_bibtexRx, pos+m_bibtexRx.matchedLength()), ++count) {
KURL bibtexUrl(TQString::fromLatin1(SCHOLAR_BASE_URL), m_bibtexRx.cap(1));
// myDebug() << bibtexUrl << endl;