[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [messagelib] webengineviewer/src/checkphishingurl: Fix index position
From:       Montel Laurent <montel () kde ! org>
Date:       2016-11-30 7:03:23
Message-ID: E1cByvL-0007JX-Mt () code ! kde ! org
[Download RAW message or body]

Git commit b279004f08a8709f6a1b6a418ecedb7f76fa75ba by Montel Laurent.
Committed on 30/11/2016 at 07:03.
Pushed by mlaurent into branch 'master'.

Fix index position

M  +1    -3    webengineviewer/src/checkphishingurl/localdatabasefile.cpp

https://commits.kde.org/messagelib/b279004f08a8709f6a1b6a418ecedb7f76fa75ba

diff --git a/webengineviewer/src/checkphishingurl/localdatabasefile.cpp \
b/webengineviewer/src/checkphishingurl/localdatabasefile.cpp index acacd9c..2591f2a \
                100644
--- a/webengineviewer/src/checkphishingurl/localdatabasefile.cpp
+++ b/webengineviewer/src/checkphishingurl/localdatabasefile.cpp
@@ -142,8 +142,7 @@ QByteArray LocalDataBaseFile::searchHash(const QByteArray \
                &hashToSearch)
      * => 12
      */
     int posListOffset = 12;
-    const int numHash = getUint64(posListOffset);
-    qDebug() << " numHash "<< numHash;
+    const int numHash = getUint64(4);
     int begin = 0;
     int end = numHash - 1;
     while (begin <= end) {
@@ -152,7 +151,6 @@ QByteArray LocalDataBaseFile::searchHash(const QByteArray \
&hashToSearch)  const int hashOffset = getUint64(off);
         const char *hashCharStar = getCharStar(hashOffset);
         const int cmp = qstrcmp(hashCharStar, hashToSearch.constData());
-        qDebug() << " begin " << begin << " end " << end << " hashCharStar" \
<<hashCharStar;  if (cmp < 0) {
             begin = medium + 1;
         } else if (cmp > 0) {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic