diff options
author | Iru Cai <mytbk920423@gmail.com> | 2014-04-21 01:33:19 +0800 |
---|---|---|
committer | Iru Cai <mytbk920423@gmail.com> | 2015-02-08 13:11:41 +0800 |
commit | 121a986be20c0d18acb73d6f296e0a31e62828d0 (patch) | |
tree | 2dc63cfe61e246e851e022690178e0a6e0772bac /src/utilities/fqterm_ip_location.cpp | |
parent | a68d5b5eded5c214eb2e1f83c212a988965a38b3 (diff) | |
download | fqterm-121a986be20c0d18acb73d6f296e0a31e62828d0.tar.xz |
wip: Migrate to Qt5 -- API,name changes
toAscii -> toLatin1
WFlags -> WindowFlags
QCustomEvent -> QEvent
QItemDelegate::check -> QItemDelegate::toCheck
TRUE,FALSE -> true,false
Diffstat (limited to 'src/utilities/fqterm_ip_location.cpp')
-rw-r--r-- | src/utilities/fqterm_ip_location.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utilities/fqterm_ip_location.cpp b/src/utilities/fqterm_ip_location.cpp index e9777a7..0489c2c 100644 --- a/src/utilities/fqterm_ip_location.cpp +++ b/src/utilities/fqterm_ip_location.cpp @@ -202,7 +202,7 @@ bool FQTermIPLocation::getLocation(QString &url, QByteArray &country, record_count = (ipDatabase_->offset_last_start_ip - ipDatabase_->offset_first_start_ip) / 7; if (record_count <= 1) { - return FALSE; + return false; } // search for right range @@ -225,7 +225,7 @@ bool FQTermIPLocation::getLocation(QString &url, QByteArray &country, if (ipDatabase_->cur_start_ip <= ip && ip <= ipDatabase_->cur_end_ip) { getCountryCity(ipDatabase_->ipfp, ipDatabase_->offset_cur_end_ip + 4, country, city); - //country.replace( country.find( "CZ88.NET", 0, FALSE ), 8, "" ); + //country.replace( country.find( "CZ88.NET", 0, false ), 8, "" ); if ((rec = country.toUpper().indexOf("CZ88.NET", 0)) >= 0) { country.replace(rec, 8, "********"); } @@ -239,7 +239,7 @@ bool FQTermIPLocation::getLocation(QString &url, QByteArray &country, city = ""; } // if ip_start<=ip<=ip_end - return TRUE; + return true; } FQTermIPLocation* FQTermIPLocation::getInstance() { |