mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Fix types for 64-bit compilation (issue #131)
This commit is contained in:
parent
f27ce1f4f2
commit
04339b3ebb
2
aard.cc
2
aard.cc
|
@ -528,7 +528,7 @@ void AardDictionary::loadArticle( uint32_t address,
|
|||
if( text.empty() )
|
||||
text = string( articleBody.data(), articleSize );
|
||||
|
||||
uint32_t n = 0;
|
||||
string::size_type n = 0;
|
||||
while( n < text.size() && text[n] != '\"' )
|
||||
n++;
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ string convert( string const & in, DICT_TYPE type, map < string, string > const
|
|||
}
|
||||
|
||||
// Strip "<nu />" tags - QDomDocument don't handle it correctly
|
||||
unsigned n;
|
||||
string::size_type n;
|
||||
while( ( n = inConverted.find( "<nu />" ) ) != string::npos )
|
||||
inConverted.erase( n, 6 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue