mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
Mac-specific: Fix some warnings while compile under MacOS
This commit is contained in:
parent
d6a9244424
commit
e2e4a6977c
2
aard.cc
2
aard.cc
|
@ -847,7 +847,7 @@ vector< sptr< Dictionary::Class > > makeDictionaries(
|
|||
|
||||
{
|
||||
QFileInfo info( FsEncoding::decode( i->c_str() ) );
|
||||
if( info.size() > ULONG_MAX )
|
||||
if( static_cast< quint64 >( info.size() ) > ULONG_MAX )
|
||||
{
|
||||
gdWarning( "File %s is too large\n", i->c_str() );
|
||||
continue;
|
||||
|
|
4
xdxf.cc
4
xdxf.cc
|
@ -694,7 +694,7 @@ protected:
|
|||
|
||||
virtual qint64 readData( char * data, qint64 maxSize );
|
||||
|
||||
virtual bool atEnd();
|
||||
virtual bool atEnd() const;
|
||||
|
||||
virtual qint64 writeData ( const char * /*data*/, qint64 /*maxSize*/ )
|
||||
{ return -1; }
|
||||
|
@ -717,7 +717,7 @@ GzippedFile::~GzippedFile()
|
|||
dict_data_close( dz );
|
||||
}
|
||||
|
||||
bool GzippedFile::atEnd()
|
||||
bool GzippedFile::atEnd() const
|
||||
{
|
||||
return gzeof( gz );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue